This package has been deprecated

Author message:

Use official plugin karma-mocha which already include this functionality

karma-mocha-debug

0.1.2 • Public • Published

karma-mocha-debug

Improve karma-mocha plugin

Installation

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

{
  "devDependencies": {
    "karma": "~0.10",
    "karma-mocha": "~0.1",
    "karma-mocha-debug": "~0.1"
  }
}

You can simple do it by:

npm install karma-mocha-debug --save-dev

Configuration

You should put mocha-debug before mocha

// karma.conf.js
module.exports = function(config) {
  config.set({
    frameworks: ['mocha-debug', 'mocha'],
  });
};

Usage

Mocha HTML reporter on debug page.

Now you can open http://localhost:9876/debug.html and see mocha html report instead default karma console report.

Run grep from console.

You can use mocha grep from console.

karma start &
karma run -- --grep=my_test

For more information on Karma see the homepage.

Package Sidebar

Install

npm i karma-mocha-debug

Weekly Downloads

100

Version

0.1.2

License

none

Last publish

Collaborators

  • maksimr