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.
npm install testcafe-reporter-phil
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();
FreakyTurtle (http://www.freakyturtle.com)