1.0.2 • Published 6 years ago
testcafe-reporter-json-emotion v1.0.2
testcafe-reporter-json-emotion
This is the JSON reporter plugin for TestCafe.
{
"startTime": "2019-07-09T06:53:31.105Z",
"endTime": "2019-07-09T06:54:59.461Z",
"userAgents": [
"Firefox 67.0.0 / Ubuntu 0.0.0",
"Chrome 75.0.3770 / Linux 0.0.0"
],
"passed": 1,
"failed": 1,
"total": 2,
"skipped": 0,
"tests": [
{
"name": "Test-1",
"errs": [],
"duration": 14.177,
"screenshotPath": null,
"skipped": false
},
{
"name": "Test-2",
"errs": [
{
"browser": "Chrome 75.0.3770 / Linux 0.0.0",
"errorMsg": "AssertionError: Missing price filter button: expected false to be truthy"
},
{
"browser": "Firefox 67.0.0 / Ubuntu 0.0.0",
"errorMsg": "AssertionError: Missing price filter button: expected false to be truthy"
}
],
"duration": 76.521,
"unstable": false,
"screenshotPath": "tests/screenshots/2019-07-09_09-53-30/test-2",
"skipped": false
}
]
}
Install
This reporter is shipped with TestCafe by default. In most cases, you won't need to install it separately.
However, if you need to install this reporter, you can use the following command.
npm install testcafe-reporter-json-emotion
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 json-emotion
When you use API, pass the reporter name to the reporter()
method:
testCafe
.createRunner()
.src('path/to/test/file.js')
.browsers('chrome')
.reporter('json-emotion') // <-
.run();
Author
Aurimas Tunaitis