DEPRECATED!!! USE karma-mocha
Improve karma-mocha plugin
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
You should put mocha-debug before mocha
// karma.conf.js
module.exports = function(config) {
config.set({
frameworks: ['mocha-debug', 'mocha'],
});
};
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.