Skip to content

Conversation

@plemarquand
Copy link
Contributor

@plemarquand plemarquand commented Jan 16, 2026

Description

Previously we were waiting for all parameterized test items to be emitted on the JSON event stream before starting the vscode.TestRun.

This limitation was in place to ensure we had all the test items in test request sent to VSCode, as we couldn't add test items after a run had started.

That requirement seems to have been relaxed, or we were just not refreshing the test explorer correctly after dynamically adding items, but regardless it looks like we can dynamically add items now.

This means we can correctly mark a test run as "started" immediately when the user starts compiling a test like we do with XCTest, making the two testing libraries the same in this regard. It also simplifies the code, allowing us to accept and inject new parameterized test items at any time during a run.

Tasks

  • Required tests have been written
  • Documentation has been updated
  • Added an entry to CHANGELOG.md if applicable

Previously we were waiting for all parameterized test items to be
emitted on the JSON event stream before starting the `vscode.TestRun`.

This limitation was in place to ensure we had all the test items in test
request sent to VSCode, as we couldn't add test items after a run had
started.

That requirement seems to have been relaxed, or we were just not
refreshing the test explorer correctly after dynamically adding items,
but regardless it looks like we can dynamically add items now.

This means we can correctly mark a test run as "started" immediately
when the user starts compiling a test like we do with XCTest, making the
two testing libraries the same in this regard. It also simplifies the
code, allowing us to accept and inject new parameterized test items at
any time during a run.
@plemarquand plemarquand force-pushed the no-more-wait-for-parameterized-tests branch from 2015f9e to 914aa9d Compare January 20, 2026 20:39
@plemarquand plemarquand merged commit 4c374da into swiftlang:main Jan 28, 2026
38 of 40 checks passed
@plemarquand plemarquand deleted the no-more-wait-for-parameterized-tests branch January 28, 2026 14:44
matthewbastien added a commit that referenced this pull request Jan 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants