0.2.5 • Published 8 years ago
jasmine-pretty-html-reporter v0.2.5
jasmine pretty html reporter
npm i jasmine-pretty-html-reporter --save-dev
NOTE: jasmine is set as a peer dependency
Check out the samples
https://stuisme.github.io/jasmine-pretty-html-reporter/
Basic Setup
var Jasmine = require('jasmine');
var HtmlReporter = require('jasmine-pretty-html-reporter').Reporter;
var jasmine = new Jasmine();
jasmine.loadConfigFile('./spec/support/jasmine.json');
// options object
jasmine.addReporter(new HtmlReporter({
path: path.join(__dirname,'results')
}));
jasmine.execute();
Reporter Options
Name | Type | Default | Description |
---|---|---|---|
path | String | path the report.html will be written to (required) | |
writeReportEachSpec | Boolean | true | writes the report.html after each spec completes, this is recommended for long running tests |
showSuspectLine | Boolean | true | shows "suspect line" on overview |
highlightSuspectLine | Boolean | true | highlight the "suspect line" in the dialog |