-
Notifications
You must be signed in to change notification settings - Fork 293
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
Support disabling watch mode #613
Comments
interesting use case... just to make sure we are on the same page. Are you concerning the initial full test run or the subsequent watch-mode run? The initial full test run can be turned off but not the watch-mode right now... In theory, the watch mode should only run the changed tests, which should be a smaller scope than the full run. Are you asking to turn off full and watch-mode all together and just have an "on-demand full test run" instead? |
@connectdotz I'm more concerning about the subsequent watch-mode run. The initial full test run is OK since it's a one-time thing and it can be turned off. However for subsequent runs the problem is the cpu load will spike up every time I save something so it becomes kind of annoying. An on-demand test run would fit my need, but it'd be great if we have a way to just run the test for the current file being edited (Jest plugin in IntelliJ can run tests for one single file, or for just one test). |
I see... run tests in the current file or a specific test has been asked before... we haven't implemented it thinking that is a subset of watch-mode behavior. However, your point is that you don't want it to run for every save but on-demand instead. I can see this feature be useful to some use cases... If anybody is interested in implementing the "on-demand mode" in addition to the watch-mode, I can work with you. We already have most pieces, so should not be too difficult... |
@connectdotz This is essential in my opinion. Once the number of tests a certain number watch mode becomes unusable. Switched on, in a sufficiently large project, I'm restarting VS Code once or twice every hour. As a result my current workflow is this.
Watch mode as it currently is fails when working on any core file. An edit causes 90% of the tests to run. For a real life example of this:
|
@ifiokjr thanks for the test repo. I agree it will be nice to have an on-demand mode... @jimmyzzxhlh and @ifiokjr, please let me know if the following workflow works for your use cases:
|
@connectdotz Yes this works for me. |
@jimmyzzxhlh how did you do this "onDemand" configuration? |
That doesn't exist, and it's exactly what I'm asking for here :) |
Ah ok, you said it worked, I thought you found something hahah thanks! |
I tried to disabled:
and watchmode is still going crazy. It's making this plugin nearly unusable. |
I ended up turning off this plugin for this reason. Running tests in the Terminal isn't so bad… |
Yeah, I've only been using this a day and this extension is very CPU intensive. I may have to uninstall this if there's no option to disable watch-mode sometime soon. Looking forward to this option being added. |
Strange that |
Hi, we have addressed this issue in v4.0.0-alpha.5, please feel free to give it a try and let us know if it works for you. |
There doesn't seem to be a way to disable the watch mode. With watch mode on the tests are always running whenever there is a save action on any file in the workspace. When we have a decent number of tests in the workspace it takes some time to finish all tests, which causes a high cpu load on my machine (observed by just listening to the fan noise).
Is it possible to disable the watch mode so that we have the ability to control when the tests are being run?
The text was updated successfully, but these errors were encountered: