testcafe-reporter-jest
v3.0.12
Published
jest-junit TestCafe reporter plugin.
Downloads
5
Maintainers
Readme
testcafe-reporter-jest
This reporter plugin for TestCafe outputs a junit xml report that is compatible with continuous integration servers like Jenkins. The main difference between this plugin and the default xunit plugin is that in this plugin, the testcase name attribute will only contain the testcase name and any additional information such as screenshots and (unstable) flags are output to <system-out/>
tag. This allows for better reporting and analysis or repeated test runs.
Additionally, the test report is wrapped in the <testsuites>
tag, so that the report can be displayed in github acitions using Dorny's Test Report Action
Install
To install this reporter, you can use the following command:
npm install testcafe-reporter-jest
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 jest
When you use API, pass the reporter name to the reporter()
method:
testCafe
.createRunner()
.src('path/to/test/file.js')
.browsers('chrome')
.reporter('jest') // <-
.run();