mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-16 06:17:10 +01:00
Fix mocha report fixture + test duration handling
This commit is contained in:
parent
9b675bd55f
commit
8dba8714d0
6 changed files with 20 additions and 87 deletions
|
|
@ -86,7 +86,7 @@ false !== true
|
|||
"error": undefined,
|
||||
"name": "Skipped test",
|
||||
"result": "skipped",
|
||||
"time": undefined,
|
||||
"time": 0,
|
||||
},
|
||||
TestCaseResult {
|
||||
"error": Object {
|
||||
|
|
@ -99,7 +99,7 @@ false !== true
|
|||
},
|
||||
"name": "Timeout test",
|
||||
"result": "failed",
|
||||
"time": 10,
|
||||
"time": 8,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
@ -107,31 +107,7 @@ false !== true
|
|||
"name": "test/second.test.js",
|
||||
"totalTime": undefined,
|
||||
},
|
||||
TestSuiteResult {
|
||||
"groups": Array [
|
||||
TestGroupResult {
|
||||
"name": "Array #indexOf()",
|
||||
"tests": Array [
|
||||
TestCaseResult {
|
||||
"error": Object {
|
||||
"details": "AssertionError [ERR_ASSERTION]: 2 == -1
|
||||
at Context.<anonymous> (test\\\\test.js:5:14)
|
||||
at processImmediate (internal/timers.js:461:21)",
|
||||
"line": undefined,
|
||||
"message": "2 == -1",
|
||||
"path": undefined,
|
||||
},
|
||||
"name": "should return -1 when the value is not present",
|
||||
"result": "failed",
|
||||
"time": 0,
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
"name": "test/test.js",
|
||||
"totalTime": undefined,
|
||||
},
|
||||
],
|
||||
"totalTime": 14,
|
||||
"totalTime": 12,
|
||||
}
|
||||
`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue