testcafe-reporter-st-html

1.0.0 • Public • Published

testcafe-reporter-st-html

This is the st-html reporter plugin for TestCafe.

st-html outputs a semi-styled html report to help track documentation and for use in wiki tools like confluence.

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 st-html

When you use API, pass the reporter name to the reporter() method:

testCafe
    .createRunner()
    .src('path/to/test/file.js')
    .browsers('chrome')
    .reporter('st-html') // <-
    .run();

Although we recommend setting up a custom stream to output to within the reporter() method:

const fs = require('fs');
const stream = fs.createWriteStream(__dirname+'/reports_' + new Date().getTime() + '.html')
 
testCafe
    .createRunner()
    .src('path/to/test/file.js')
    .browsers('chrome')
    .reporter('st-html', stream) // <-
    .run();

Package Sidebar

Install

npm i testcafe-reporter-st-html

Weekly Downloads

26

Version

1.0.0

License

MIT

Unpacked Size

227 kB

Total Files

22

Last publish

Collaborators

  • st1600133971