Skip to content

Conversation

@Skn0tt
Copy link
Member

@Skn0tt Skn0tt commented Oct 28, 2025

Closes #272888

Copilot AI review requested due to automatic review settings October 28, 2025 12:45
Copy link
Contributor

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

This PR fixes an issue where tests that were enqueued but never completed were marked as "Unset" instead of "Skipped" when the test run finished. The change ensures that any tests left in Queued or Running state are properly marked as Skipped when the test task completes, providing clearer feedback about which tests were not executed.

Key changes:

  • Changed the default state for uncompleted tests from TestResultState.Unset to TestResultState.Skipped in the markComplete() method
  • Added a test case to verify that enqueued but never completed tests are marked as skipped

Reviewed Changes

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

File Description
src/vs/workbench/contrib/testing/common/testResult.ts Changed the state assignment for uncompleted tests from Unset to Skipped when marking a test task as complete
src/vs/workbench/contrib/testing/test/common/testResultService.test.ts Added test case to verify enqueued tests are marked as skipped when the test run completes
@connor4312
Copy link
Member

Looks like status checks failed

@Skn0tt
Copy link
Member Author

Skn0tt commented Oct 28, 2025

Fixed. Looks like my test was a duplicate of the one above ^^

@connor4312
Copy link
Member

thanks!

@connor4312 connor4312 enabled auto-merge (squash) October 28, 2025 17:46
@vs-code-engineering vs-code-engineering bot added this to the October 2025 milestone Oct 28, 2025
@connor4312 connor4312 merged commit 6e17002 into microsoft:main Oct 28, 2025
17 checks passed
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Dec 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

3 participants