jasmine-pretty-html-reporter

0.2.5 • Public • Published

jasmine pretty html reporter

Build Status Latest Version NPM Version NPM Monthly Downloads

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

Package Sidebar

Install

npm i jasmine-pretty-html-reporter

Weekly Downloads

734

Version

0.2.5

License

MIT

Last publish

Collaborators

  • stuisme