testcafe-reporter-phil

1.0.2 • Public • Published

testcafe-reporter-phil

Build Status

This is the phil reporter plugin for TestCafe.

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

Why is it called phil? As an homage to Bill Murray's reporter character in the film groundhog day.

preview

Install

npm install testcafe-reporter-phil

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 phil

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

testCafe
    .createRunner()
    .src('path/to/test/file.js')
    .browsers('chrome')
    .reporter('phil') // <-
    .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('phil', stream) // <-
    .run();

Author

FreakyTurtle (http://www.freakyturtle.com)

Package Sidebar

Install

npm i testcafe-reporter-phil

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

9.42 kB

Total Files

4

Last publish

Collaborators

  • opensussex
  • freakyturtle