-
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.
* add meta-data to testcase #34 * xUnit implementation + tests * mocha-test-explorer extension config support * junit implementation * cucumber implementation * mocha implementation * testng implementation * strip tag indicator character from mocha + cucumber. add support for key/value tags
- Loading branch information
1 parent
8a8863e
commit e3c18be
Showing
21 changed files
with
446 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,5 +38,8 @@ | |
"devDependencies": { | ||
"c8": "^7.12.0", | ||
"mocha": "^10.0.0" | ||
}, | ||
"mocha": { | ||
"spec": "tests/**/*.spec.js" | ||
} | ||
} |
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
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
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,24 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<testsuites id="id" name="result name" tests="2" failures="1" errors="" time="20"> | ||
<testsuite id="codereview.cobol.analysisProvider" name="suite name 1" tests="1" failures="1" time="10"> | ||
<properties> | ||
<property name="key1" value="value1" /> | ||
<property name="key2" value="value2" /> | ||
</properties> | ||
<testcase id="codereview.cobol.rules.ProgramIdRule" name="Use a program name that matches the source file name" time="10"> | ||
<properties> | ||
<property name="key1" value="override-value1" /> | ||
</properties> | ||
<failure message="PROGRAM.cbl:2 Use a program name that matches the source file name" type="WARNING"> | ||
Some Text | ||
</failure> | ||
</testcase> | ||
</testsuite> | ||
<testsuite id="codereview.cobol.analysisProvider" name="suite name 2" tests="1" failures="0" time="10"> | ||
<testcase id="codereview.cobol.rules.ProgramIdRule" name="Use a program name that matches the source file name" time="10"> | ||
<failure message="PROGRAM.cbl:2 Use a program name that matches the source file name" type="WARNING"> | ||
Some Text | ||
</failure> | ||
</testcase> | ||
</testsuite> | ||
</testsuites> |
85 changes: 85 additions & 0 deletions
85
tests/data/mocha/json/multiple-suites-multiple-tests-tags.json
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,85 @@ | ||
{ | ||
"stats": { | ||
"suites": 2, | ||
"tests": 3, | ||
"passes": 2, | ||
"pending": 0, | ||
"failures": 1, | ||
"start": "2022-06-11T05:28:11.204Z", | ||
"end": "2022-06-11T05:28:11.227Z", | ||
"duration": 7 | ||
}, | ||
"tests": [ | ||
{ | ||
"title": "sample test case @fast #1255", | ||
"fullTitle": "Example Suite 1 sample test case @fast #1255", | ||
"file": "", | ||
"duration": 3, | ||
"currentRetry": 0, | ||
"speed": "fast", | ||
"err": {} | ||
}, | ||
{ | ||
"title": "sample test case 2", | ||
"fullTitle": "Example Suite 1 sample test case 2", | ||
"file": "", | ||
"duration": 1, | ||
"currentRetry": 0, | ||
"speed": "fast", | ||
"err": {} | ||
}, | ||
{ | ||
"title": "sample test case #1234", | ||
"fullTitle": "Example Suite 2 sample test case #1234", | ||
"file": "", | ||
"duration": 1, | ||
"currentRetry": 0, | ||
"err": { | ||
"stack": "AssertionError [ERR_ASSERTION]: Dummy reason\n at Context.<anonymous> (tests\\parser.mocha.json.spec.js:7:12)\n at processImmediate (node:internal/timers:466:21)", | ||
"message": "Dummy reason", | ||
"generatedMessage": false, | ||
"name": "AssertionError", | ||
"code": "ERR_ASSERTION", | ||
"operator": "fail" | ||
} | ||
} | ||
], | ||
"pending": [], | ||
"failures": [ | ||
{ | ||
"title": "sample test case #1234", | ||
"fullTitle": "Example Suite 2 sample test case #1234", | ||
"file": "", | ||
"duration": 1, | ||
"currentRetry": 0, | ||
"err": { | ||
"stack": "AssertionError [ERR_ASSERTION]: Dummy reason\n at Context.<anonymous> (tests\\parser.mocha.json.spec.js:7:12)\n at processImmediate (node:internal/timers:466:21)", | ||
"message": "Dummy reason", | ||
"generatedMessage": false, | ||
"name": "AssertionError", | ||
"code": "ERR_ASSERTION", | ||
"operator": "fail" | ||
} | ||
} | ||
], | ||
"passes": [ | ||
{ | ||
"title": "sample test case @fast #1255", | ||
"fullTitle": "Example Suite 1 sample test case @fast #1255", | ||
"file": "", | ||
"duration": 3, | ||
"currentRetry": 0, | ||
"speed": "fast", | ||
"err": {} | ||
}, | ||
{ | ||
"title": "sample test case 2", | ||
"fullTitle": "Example Suite 1 sample test case 2", | ||
"file": "", | ||
"duration": 1, | ||
"currentRetry": 0, | ||
"speed": "fast", | ||
"err": {} | ||
} | ||
] | ||
} |
Oops, something went wrong.