Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including karma-html-reporter with all npm packages installed. Try it out:

require("karma/package.json"); // karma is a peer dependency. var karmaHtmlReporter = require("karma-html-reporter")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

karma-html-reporter v0.2.7

A Karma plugin. Report results in pretty html format.


Reporter that formats results in HTML similar to jasmine.


The easiest way is to keep karma-html-reporter as a devDependency in your package.json.

  "devDependencies": {
    "karma": "~0.10",
    "karma-html-reporter": "~0.1"

You can simply do it by:

npm install karma-html-reporter --save-dev


// karma.conf.js
module.exports = function(config) {
    reporters: ['progress', 'html'],

    // the default configuration
    htmlReporter: {
      outputDir: 'karma_html', // where to put the reports 
      templatePath: null, // set if you moved jasmine_template.html
      focusOnFailures: true, // reports show failures on start
      namedFiles: false, // name files instead of creating sub-directories
      pageTitle: null, // page title for reports; browser info by default
      urlFriendlyName: false, // simply replaces spaces with _ for files/dirs
      reportName: 'report-summary-filename', // report summary filename; browser info by default
      // experimental
      preserveDescribeNesting: false, // folded suites stay folded 
      foldAll: false, // reports start folded (only with preserveDescribeNesting)

You can pass list of reporters as a CLI argument too:

karma start --reporters html,dots

Keyboard Controls

1 and 2 - switch between Spec List and Failures. F - fold/unfold all suites in preserveDescribeNesting mode.

For more information on Karma see the homepage.


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free