testcafe-reporter-nunit3
This is the NUnit 3 reporter plugin for TestCafe. It currently implements the subset of attributes that Azure DevOps cares about and has not been tested for other scenarios.
Details of the NUnit format can be found at https://github.com/nunit/docs/wiki/Test-Result-XML-Format.
Features:
- Video and screenshot paths included as test case attachments.
- Quarantine mode support: passing tests that failed at least once are marked as
Inconclusive
instead ofPassed
. The result of each run is specified as text appended to the error message. - Fails the test run (via a new failed test case) if the TestCafe process exits without all tests finishing. The provided xunit reporter emits a blank file in these scenarios.
- Emits fixture and test metadata as
<property>
elements.
Error details for every failed quarantine run are not currently supported by the TestCafe Reporter API.
Install
npm install testcafe-reporter-nunit3
Usage
An example .testcaferc.json
entry that creates nunit3 reports along with standard console logging:
"reporter": [
"spec",
{
"name": "nunit3",
"output": "results/handy-dandy-report.xml"
}
]
See the official reporter documentation for more information.