Skip to content

Commit 6ec7467

Browse files
committed
fix: don't end the test run during collection
1 parent 319d8c1 commit 6ec7467

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/runner/runner.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export class TestRunner extends vscode.Disposable {
4848
log.verbose?.('Not starting the runner because tests are being collected for', ...files.map(f => this.relative(f)))
4949
}
5050
else {
51-
log.verbose?.('The runner is starting because tests', ...files.map(f => this.relative(f)), 'were started due to a file change')
51+
log.verbose?.('Starting a test run because', ...files.map(f => this.relative(f)), 'were started due to a file change')
5252
this.startTestRun(files)
5353
}
5454
})
@@ -135,7 +135,8 @@ export class TestRunner extends vscode.Disposable {
135135
if (unhandledError)
136136
testRun.appendOutput(formatTestOutput(unhandledError))
137137

138-
this.endTestRun()
138+
if (!collecting)
139+
this.endTestRun()
139140
})
140141

141142
api.onConsoleLog(({ content, taskId }) => {

0 commit comments

Comments
 (0)