Reporter that clears the screen before each test run.
The easiest way is to keep karma-clear-screen-reporter
as a devDependency in your package.json
.
{
"devDependencies": {
"karma": "~0.10",
"karma-clear-screen-reporter": ">=1.0.0"
}
}
You can simple do it by:
npm install karma-clear-screen-reporter --save-dev
Play it safe to load this plugin both in your reporters and plugins, if you are already having a plugins section. Karama loads automatically all available plugins from your node modules as long as you have not declared them explicitly. For more details please read the Loading Plugins by Karma.
// karma.conf.js
module.exports = function(config) {
config.set({
reporters: ['progress', 'clear-screen'],
plugins: ['karma-clear-screen-reporter']
});
};
You can pass list of reporters as a CLI argument too:
karma start --reporters clear-screen,dots