0.3.5 • Published 9 years ago
karma-jasmine-runner2-reporter v0.3.5
karma-jasmine-runner-reporter2
Reporter to create Jasmine Runner HTML on the fly. Extends the reporter (https://github.com/ariesb/karma-jasmine-runner-reporter) by allowing options to override the default template and allow use of relative paths.
Installation
The easiest way is to keep karma-jasmine-runner-reporter2
as a devDependency in your package.json
.
{
"devDependencies": {
"karma": "~0.10",
"karma-jasmine-runner2-reporter": "~0.1"
}
}
You can simple do it by:
npm install karma-jasmine-runner2-reporter --save-dev
Configuration
Following code shows the default configuration...
// karma.conf.js
module.exports = function(config) {
config.set({
reporters: ['progress', 'jasmine-runner2'],
// the default configuration
jasmineRunner2Reporter: {
jasmineCore: '../bower_components/', // relative path (from the output file to jasmine lib)
outputFile: 'jasmine-runner.html', // name of output file (default is jasmine-runner.html)
includes: [ ], // additional files to include
templatePath: 'runner-template.html' // use if you moved runner-template.html
}
});
};
For more information on Karma see the homepage.