Skip to content

Mark suites as queued when run outside of the test runner#5932

Merged
DanTup merged 2 commits intomasterfrom
mark-suites-run-outside-of-test-explorer-as-queued
Feb 26, 2026
Merged

Mark suites as queued when run outside of the test runner#5932
DanTup merged 2 commits intomasterfrom
mark-suites-run-outside-of-test-explorer-as-queued

Conversation

@DanTup
Copy link
Member

@DanTup DanTup commented Feb 25, 2026

Fixes #5928

@DanTup DanTup added this to the v3.130.0 milestone Feb 25, 2026
@DanTup DanTup added is enhancement An enhancement or improvement that should be listed in release notes but is not a bug fix. in testing Relates to test execution of Dart/Flutter tests for end users labels Feb 25, 2026
@DanTup

This comment was marked as resolved.

@codecov

This comment was marked as outdated.

@DanTup DanTup requested a review from Copilot February 25, 2026 21:29
@DanTup

This comment was marked as outdated.

gemini-code-assist[bot]

This comment was marked as outdated.

This comment was marked as outdated.

chatgpt-codex-connector[bot]

This comment was marked as outdated.

@DanTup DanTup requested a review from Copilot February 26, 2026 10:34
@DanTup
Copy link
Member Author

DanTup commented Feb 26, 2026

@codex review

/gemini review

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces functionality to correctly mark test suites as queued when they are run outside of the VS Code test runner UI. The changes involve refactoring the registerTestRun method to explicitly track whether a test run was initiated by the test runner, updating the testRuns data structure, and adjusting the logic for ending debug sessions and enqueuing tests. A new suiteStarted event has been added to the test model and controller to handle the specific case of suites being discovered during an active test run, ensuring proper state management for tests not started via the UI. Additionally, the markEnqueued method has been refined to prevent setup/teardown tests from being explicitly enqueued, which improves the accuracy of the test UI representation.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c4d9d503e0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@DanTup DanTup merged commit 811c14f into master Feb 26, 2026
27 checks passed
@DanTup DanTup deleted the mark-suites-run-outside-of-test-explorer-as-queued branch February 26, 2026 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in testing Relates to test execution of Dart/Flutter tests for end users is enhancement An enhancement or improvement that should be listed in release notes but is not a bug fix.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test icon change on new run doesn't happen on test_reflective_loader that is not from context menu

2 participants