Skip to content

Commit

Permalink
fix: enqueue tests during collection
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Oct 7, 2024
1 parent 3b2baff commit aeccf76
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/runner/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ export class TestRunner extends vscode.Disposable {
log.verbose?.(`Marking "${test.label}" as skipped during collection`)
testRun.skipped(test)
}
else if (!task.result && task.type !== 'suite') {
log.verbose?.(`Enqueuing "${test.label}" because it was just collected`)
testRun.enqueued(test)
}
else {
this.markResult(testRun, test, task.result)
}
Expand Down

0 comments on commit aeccf76

Please sign in to comment.