Skip to content

Commit

Permalink
fix: add duration to failed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zxch3n committed May 17, 2022
1 parent 761b9d4 commit 923ea3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/runHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ async function runTest(
run.failed(
child,
new vscode.TestMessage(result.failureMessages.join('\r\n')),
result.duration ?? undefined,
)
return
}
Expand Down
1 change: 1 addition & 0 deletions src/watch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ export class TestWatcher extends Disposable {
run.failed(
data.item,
new TestMessage(task.result.error?.message ?? ''),
task.result.duration,
)
break
case 'skip':
Expand Down

0 comments on commit 923ea3f

Please sign in to comment.