-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* set each suite's skipped tests to the sum of pending and skipped tests for the mocha parser * Revert "set each suite's skipped tests to the sum of pending and skipped tests for the mocha parser" This reverts commit eaa50d7. * add mochawesome parser * update mocha parser description * init mochawesome parser * update tests to consider mocha & mochawesome parsers * mochawesome reporter that considers skipped & pending tests * undo split into two different parsers for mocha & mochawesome * implement new mochawesome parser test for tests marked as skipped but not pending * rename mochawesome test files to match their purpose * rename mochawesome pending tests test description * undo change since 'skipped' test state does not exist * update node_version matrix to latest * fix reference error when wrong reporter type was passed --------- Co-authored-by: Joaquín Muleiro <[email protected]>
- Loading branch information
1 parent
aef028c
commit 56290a4
Showing
6 changed files
with
298 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
{ | ||
"stats": { | ||
"suites": 1, | ||
"tests": 2, | ||
"passes": 1, | ||
"pending": 1, | ||
"failures": 0, | ||
"start": "2022-06-11T08:23:09.912Z", | ||
"end": "2022-06-11T08:23:09.915Z", | ||
"duration": 3, | ||
"testsRegistered": 2, | ||
"passPercent": 100, | ||
"pendingPercent": 50, | ||
"other": 0, | ||
"hasOther": false, | ||
"skipped": 0, | ||
"hasSkipped": false | ||
}, | ||
"results": [ | ||
{ | ||
"uuid": "a3892a10-4d6a-4729-a479-4744cfb1f025", | ||
"title": "", | ||
"fullFile": "", | ||
"file": "", | ||
"beforeHooks": [], | ||
"afterHooks": [], | ||
"tests": [], | ||
"suites": [ | ||
{ | ||
"uuid": "e450ecce-78d4-4013-8f88-5fa87007b564", | ||
"title": "Example Suite", | ||
"fullFile": "", | ||
"file": "", | ||
"beforeHooks": [], | ||
"afterHooks": [], | ||
"tests": [ | ||
{ | ||
"title": "first sample test", | ||
"fullTitle": "Example Suite first sample test", | ||
"timedOut": false, | ||
"duration": 1, | ||
"state": "passed", | ||
"speed": "fast", | ||
"pass": true, | ||
"fail": false, | ||
"pending": false, | ||
"context": null, | ||
"code": "", | ||
"err": {}, | ||
"uuid": "5f4fc8ba-fbf0-4439-a084-4199ad46f812", | ||
"parentUUID": "e450ecce-78d4-4013-8f88-5fa87007b564", | ||
"isHook": false, | ||
"skipped": false | ||
}, | ||
{ | ||
"title": "second sample test", | ||
"fullTitle": "Example Suite second sample test", | ||
"timedOut": false, | ||
"duration": 0, | ||
"state": "pending", | ||
"speed": null, | ||
"pass": false, | ||
"fail": false, | ||
"pending": true, | ||
"context": null, | ||
"code": "", | ||
"err": {}, | ||
"uuid": "9fc0d5f8-dc37-4139-b39f-9ca6e041aca3", | ||
"parentUUID": "e450ecce-78d4-4013-8f88-5fa87007b564", | ||
"isHook": false, | ||
"skipped": false | ||
} | ||
], | ||
"suites": [], | ||
"passes": [ | ||
"5f4fc8ba-fbf0-4439-a084-4199ad46f812" | ||
], | ||
"failures": [], | ||
"pending": [ | ||
"9fc0d5f8-dc37-4139-b39f-9ca6e041aca3" | ||
], | ||
"skipped": [], | ||
"duration": 1, | ||
"root": false, | ||
"rootEmpty": false, | ||
"_timeout": 2000 | ||
} | ||
], | ||
"passes": [], | ||
"failures": [], | ||
"pending": [], | ||
"skipped": [], | ||
"duration": 0, | ||
"root": true, | ||
"rootEmpty": true, | ||
"_timeout": 2000 | ||
} | ||
], | ||
"meta": { | ||
"mocha": { | ||
"version": "10.0.0" | ||
}, | ||
"mochawesome": { | ||
"options": { | ||
"quiet": false, | ||
"reportFilename": "mochawesome", | ||
"saveHtml": true, | ||
"saveJson": true, | ||
"consoleReporter": "spec", | ||
"useInlineDiffs": false, | ||
"code": true | ||
}, | ||
"version": "7.1.3" | ||
}, | ||
"marge": { | ||
"options": null, | ||
"version": "6.2.0" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.