mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-17 14:57:09 +01:00
Merge branch 'dev' into mocha-json
This commit is contained in:
commit
ee126813a2
24 changed files with 3653 additions and 1304 deletions
|
|
@ -87,7 +87,9 @@ export class DotnetTrxParser implements TestParser {
|
|||
}
|
||||
const output = r.unitTestResult.Output
|
||||
const error = output?.length > 0 && output[0].ErrorInfo?.length > 0 ? output[0].ErrorInfo[0] : undefined
|
||||
const duration = parseNetDuration(r.unitTestResult.$.duration)
|
||||
const durationAttr = r.unitTestResult.$.duration
|
||||
const duration = durationAttr ? parseNetDuration(durationAttr) : 0
|
||||
|
||||
const test = new Test(r.testMethod.$.name, r.unitTestResult.$.outcome, duration, error)
|
||||
tc.tests.push(test)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ export interface UnitTestResult {
|
|||
$: {
|
||||
testId: string
|
||||
testName: string
|
||||
duration: string
|
||||
duration?: string
|
||||
outcome: Outcome
|
||||
}
|
||||
Output: Output[]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue