0.2.5 • Published 2 years ago

jasmine-pretty-html-reporter-jasmine3.8 v0.2.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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 path = require('path');
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

NameTypeDefaultDescription
pathStringpath the report.html will be written to (required)
writeReportEachSpecBooleantruewrites the report.html after each spec completes, this is recommended for long running tests
showSuspectLineBooleantrueshows "suspect line" on overview
highlightSuspectLineBooleantruehighlight the "suspect line" in the dialog