mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-17 14:57:09 +01:00
Avoid NaN in totalTime
This commit is contained in:
parent
e8917857c2
commit
99678f922b
3 changed files with 6 additions and 3 deletions
|
|
@ -43,7 +43,10 @@ export class GoJunitParser implements TestParser {
|
|||
return sr
|
||||
})
|
||||
|
||||
const time = parseFloat(junit.testsuites.$.time) * 1000
|
||||
const time =
|
||||
junit.testsuites.$?.time === undefined
|
||||
? undefined
|
||||
: parseFloat(junit.testsuites.$.time) * 1000
|
||||
return new TestRunResult(path, suites, time)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue