1600133971 / testcafe-reporter-st-dx

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

testcafe-reporter-st-dx

This is the st-dx reporter plugin for TestCafe.

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

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

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

About

License:MIT License


Languages

Language:CSS 84.1%Language:JavaScript 14.7%Language:HTML 1.2%