Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testing: sort completed tests by start sequence, not completion time #235758

Merged
merged 2 commits into from
Dec 10, 2024

Conversation

connor4312
Copy link
Member

Fixes #235667

The root cause of the issue is the separate test run that playwright does:

https://github.com/microsoft/playwright-vscode/blob/4fba0d0873ee9bf5de17219fa2f48201fd16162f/src/extension.ts#L403-L422.

VS Code by default only shows failure messages from the last-ended test
run, which was the original (unused) test run VS Code created, because
it ends automatically after the runHandler's promise resolves. A good
change to make, which happens to fix this bug, is ensuring results are
retained in the order the user started the test runs versus the order
in which they ended.

Note that playwright is able to avoid the duplicate run since #213182,
but I think this is still a sensible change to make.

Fixes #235667

The root cause of the issue is the separate test run that playwright does:

https://github.com/microsoft/playwright-vscode/blob/4fba0d0873ee9bf5de17219fa2f48201fd16162f/src/extension.ts#L403-L422.

VS Code by default only shows failure messages from the last-ended test
run, which was the original (unused) test run VS Code created, because
it ends automatically after the runHandler's promise resolves. A good
change to make, which happens to fix this bug, is ensuring results are
retained in the order the user started the test runs versus the order
in which they ended.

Note that playwright is able to avoid the duplicate run since #213182,
but I think this is still a sensible change to make.
@connor4312 connor4312 self-assigned this Dec 10, 2024
@connor4312 connor4312 enabled auto-merge (squash) December 10, 2024 18:47
@vs-code-engineering vs-code-engineering bot added this to the February 2025 milestone Dec 10, 2024
@bhavyaus bhavyaus modified the milestones: February 2025, January 2025 Dec 10, 2024
Tyriar
Tyriar previously approved these changes Dec 10, 2024
@connor4312 connor4312 merged commit 3e59d46 into main Dec 10, 2024
8 checks passed
@connor4312 connor4312 deleted the connor4312/issue235667 branch December 10, 2024 19:56
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Jan 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Testing: [REGRESSION] no inline error messages on failures
3 participants