protractor-jasmine2-parallel-html-reporter
v1.0.0
Published
Creates html reports for protractor jasmine2 tests run in parallel. Consolidates reports by platform, browser, and version. Supports multicapabilities and shardTestFiles.
Downloads
52
Readme
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.
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)
reportsDirectory
{String}
reports directory
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.