testcafe-reporter-sauce-json
v0.7.0
Published
A TestCafe reporter plugin to generate a SauceLabs test report.
Downloads
6
Readme
testcafe-reporter-sauce-json
This is the sauce-json reporter plugin for TestCafe.
Install
npm install testcafe-reporter-sauce-json
Usage
When you run tests from the command line, specify the reporter name by using the --reporter
option:
testcafe chrome 'path/to/test/file.js' --reporter sauce-json
or
testcafe chrome 'path/to/test/file.js' --reporter "sauce-json:./path/to/output.report.json
When you use API, pass the reporter name to the reporter()
method:
testCafe
.createRunner()
.src('path/to/test/file.js')
.browsers('chrome')
.reporter('sauce-json') // <-
.run();