-
Notifications
You must be signed in to change notification settings - Fork 764
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
Allow Test Explorer UI To Automatically Trigger Testing On Save #1952
Comments
The old test infrastructure and the new test explorer UI implementation are separate. The Go: Test On Save option works with the old infrastructure. We do plan to merge the two implementations, but since October I haven't had any time to contribute to this project (I wrote the test explorer implementation). One of the proposed APIs allows an extension to invalidate the results for specific tests. If auto-run is enabled in the test explorer, invalidated tests will be automatically re-run.
|
Thanks @firelizzard18 for the insight. |
Related: #2483 |
Today in #3523 I implemented support for VSCode's continuous test runs. Specifically, if you click @sheldonhull I'm guessing this does not meet your needs, since it sounds like you want updates to related code to trigger runs. It would be feasible to have some simple logic, such as "when any file in package X changes, rerun every test in package X (when a continuous run is active)". However I think the other settings you're requesting such as "showtestexplorerwhentriggered" should be separate requests. |
I love the test explorer UI and want to use more regularly for TDD.
In the settings, there is an option to run tests on save, but this doesn't seem to integrate with, or having any settings related to the test explorer ui.
What I'd love to see is the Test Explorer UI offer some custom settings such as:
I really want to use this nice explorer on the side to do red/green style TDD, but clicking each time from my code file to the test ui or the play button is not a smooth process to regularly run on changes.
edit:
The equivalent in Goland is a file watcher than runs tests on save with a slight delay, and works well, although not as granular as it might be with the pattern above.
The text was updated successfully, but these errors were encountered: