Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

stuisme/jasmine-pretty-html-reporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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