mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-15 13:57:09 +01:00
build & package
This commit is contained in:
parent
cacdfc564b
commit
9d4bb43029
1 changed files with 4 additions and 2 deletions
6
dist/index.js
generated
vendored
6
dist/index.js
generated
vendored
|
|
@ -558,7 +558,7 @@ class DartJsonParser {
|
|||
group.tests.push(test);
|
||||
tests[evt.test.id] = test;
|
||||
}
|
||||
else if ((0, dart_json_types_1.isTestDoneEvent)(evt) && !evt.hidden && tests[evt.testID]) {
|
||||
else if ((0, dart_json_types_1.isTestDoneEvent)(evt) && tests[evt.testID]) {
|
||||
tests[evt.testID].testDone = evt;
|
||||
}
|
||||
else if ((0, dart_json_types_1.isErrorEvent)(evt) && tests[evt.testID]) {
|
||||
|
|
@ -585,7 +585,9 @@ class DartJsonParser {
|
|||
groups.sort((a, b) => { var _a, _b; return ((_a = a.group.line) !== null && _a !== void 0 ? _a : 0) - ((_b = b.group.line) !== null && _b !== void 0 ? _b : 0); });
|
||||
return groups.map(group => {
|
||||
group.tests.sort((a, b) => { var _a, _b; return ((_a = a.testStart.test.line) !== null && _a !== void 0 ? _a : 0) - ((_b = b.testStart.test.line) !== null && _b !== void 0 ? _b : 0); });
|
||||
const tests = group.tests.map(tc => {
|
||||
const tests = group.tests
|
||||
.filter(tc => { var _a; return !((_a = tc.testDone) === null || _a === void 0 ? void 0 : _a.hidden); })
|
||||
.map(tc => {
|
||||
const error = this.getError(suite, tc);
|
||||
const testName = group.group.name !== undefined && tc.testStart.test.name.startsWith(group.group.name)
|
||||
? tc.testStart.test.name.slice(group.group.name.length).trim()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue