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

[Test API] ability to configure/communicate with explorer toolbar #127964

Closed
connectdotz opened this issue Jul 4, 2021 · 2 comments
Closed

[Test API] ability to configure/communicate with explorer toolbar #127964

connectdotz opened this issue Jul 4, 2021 · 2 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@connectdotz
Copy link

Currently, the Test Explorer has a toolbar with a few buttons like run all tests, debug all tests, turn on/off auto run that are not configurable by the API.

We have use cases that used external watcher (e.g. jest --watch) to monitor and run tests, therefore would prefer not to trigger any manual run via the explorer. While I can turn off the "runnable" for the test items, there didn't seem to have a way to disable these buttons from the test API.

Furthermore, while I can guess the run/debug all tests in the runTest handler, there is no way to know that the user has turned on the auto-run since all we get is the same request as "run all tests"...

@connor4312
Copy link
Member

While I can turn off the "runnable" for the test items, there didn't seem to have a way to disable these buttons from the test API.

I will track this as part of #127096 (comment)

Furthermore, while I can guess the run/debug all tests in the runTest handler, there is no way to know that the user has turned on the auto-run since all we get is the same request as

Yea, this is a sore spot. I've come back to thinking that extensions should implement auto run themselves (this is different than what's done in the Test Explorer UI extension). Let's merge discussion into that issue

/duplicate

@github-actions github-actions bot locked and limited conversation to collaborators Aug 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

3 participants
@connectdotz @connor4312 and others