anthony-telljohann / protractor-jasmine2-parallel-html-reporter

Creates html reports for protractor jasmine2 tests run in parallel. Consolidates reports by platform, browser, and version. Supports multicapabilities and shardTestFiles.
1 stars 0 forks source link

protractor-jasmine2-parallel-html-reporter

Greenkeeper badge

Build Status codecov NPM version Styled with prettier

Creates html reports for protractor jasmine2 tests run in parallel. Consolidates reports by platform, browser, and version. Supports multicapabilities and shardTestFiles.

Usage

Install with npm

npm install protractor-jasmine2-parallel-html-reporter
import ProtractorJasmine2ParallelHtmlReporter from 'protractor-jasmine2-parallel-html-reporter'
var parallelHtmlReporter = new ProtractorJasmine2ParallelHtmlReporter('./reports')
exports.config = {
    onPrepare: function () {
        return parallelHtmlReporter.add()
    },
    afterLaunch: function () {
        return parallelHtmlReporter.consolidateReports()
    }
};

API

constructor(reportsDirectory)

var parallelHtmlReporter = new ProtractorJasmine2ParallelHtmlReporter('./reports')

Constructs a ProtractorJasmine2ParallelHtmlReporter.

add()

parallelHtmlReporter.add()

Adds an html reporter for every test.

consolidateReports()

parallelHtmlReporter.consolidateReports()

Consolidates html reports by platform, browser, and version.