Skip to content

Show progress while discovering tests #3519

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

Merged
merged 1 commit into from
May 23, 2025

Conversation

vinistock
Copy link
Member

@vinistock vinistock commented May 21, 2025

Motivation

If someone uses a code lens without having expanded the test explorer panel, we need to discover test items in the background before starting execution.

For large projects, the user has no visual indication that anything is happening, so it can be a bit confusing. Let's show a progress notification, so that the user is aware something is happening.

Implementation

Added a progress notification that will print how far we are into discovering test files. Also, prevented the test controller from doing duplicate work in case we discover tests in the background and then VS Code still fires another initial resolve request.

Automated Tests

Added a test.

Copy link
Member Author


How to use the Graphite Merge Queue

Add the label graphite-merge to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@vinistock vinistock self-assigned this May 21, 2025
@vinistock vinistock added vscode This pull request should be included in the VS Code extension's release notes enhancement New feature or request labels May 21, 2025 — with Graphite App
@vinistock vinistock marked this pull request as ready for review May 21, 2025 19:08
@vinistock vinistock requested a review from a team as a code owner May 21, 2025 19:08
Copy link
Contributor

@egiurleo egiurleo left a comment

Choose a reason for hiding this comment

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

Nice!

@vinistock vinistock merged commit 9aa9680 into main May 23, 2025
44 checks passed
@vinistock vinistock deleted the 05-21-show_progress_while_discovering_tests branch May 23, 2025 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request vscode This pull request should be included in the VS Code extension's release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants