1.0.0 • Published 7 years ago
testcafe-reporter-failure-files v1.0.0
testcafe-reporter-failure-files
This is the failure-files reporter plugin for TestCafe. Unlike other reporters, it only prints out a list of the test files that have failed. This is useful if your tests are flaky due to unstable infrastructures. For example, the test target is an external web server. When that happens, you can simply get the list of the files with this reporter and rerun them.
Install
npm install --save-dev testcafe-reporter-failure-files
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 failure-files
When you use API, pass the reporter name to the reporter()
method:
testCafe
.createRunner()
.src('path/to/test/file.js')
.browsers('chrome')
.reporter('failure-files') // <-
.run();
Author
Daniel Han