jasmine-pretty-html-reporter
v0.2.5
Published
an easy to use html page for looking at jasmine test results
Downloads
3,297
Readme
jasmine pretty html reporter
npm i jasmine-pretty-html-reporter --save-devNOTE: 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 |
