testcafe-reporter-slack-errors-only
This is the slack-errors-only reporter plugin for TestCafe.
Install
npm install testcafe-reporter-slack-errors-only
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 slack-errors-only
When you use API, pass the reporter name to the reporter()
method:
testCafe // <- ;
Important Note
If you are looping over your test fixtures, each test fixture must have a unique name (otherwise error reports will be all grouped together under the same name, making it difficult to attribute the source of the error for each test)
For example:
//test.js { page `http://example.com` ;} const testSuite = ; for const config of testSuite ;
Author
Eden Adler