mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-15 13:57:09 +01:00
Report times in milliseconds.
This commit is contained in:
parent
49c1f3ae6c
commit
953e623fd8
3 changed files with 14 additions and 14 deletions
|
|
@ -34,7 +34,7 @@ export class DotNetNunitParser implements TestParser {
|
|||
|
||||
private getTestRunResult(path: string, nunit: NunitReport): TestRunResult {
|
||||
const suites: TestSuiteResult[] = []
|
||||
const time = parseFloat(nunit['test-run'].$.duration)
|
||||
const time = parseFloat(nunit['test-run'].$.duration) * 1000
|
||||
|
||||
this.populateTestCasesRecursive(suites, [], nunit['test-run']['test-suite'])
|
||||
|
||||
|
|
@ -93,7 +93,7 @@ export class DotNetNunitParser implements TestParser {
|
|||
new TestCaseResult(
|
||||
testCase.$.name,
|
||||
this.getTestExecutionResult(testCase),
|
||||
parseFloat(testCase.$.duration),
|
||||
parseFloat(testCase.$.duration) * 1000,
|
||||
this.getTestCaseError(testCase)
|
||||
)
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue