How do I disable auto-running unit tests?
Answered
For some reason, Intellij suddenly started automatically running unit tests when any file is edited in the project. This is infuriating because I will change something, break a unit test, then intellij pulls focus from whatever I am doing to the unit test which is broken even if I am mid-edit on something else. I cannot find the setting that turns this off - I have been using it for months and it never acted like this. I already tried to Disable the "Reload changes in build scripts" option.
Using Gradle and Java 17.
Please sign in to leave a comment.
Hello,
Please check that “Rerun Automatically” option is not enabled in Run tool window.
I am having this same problem. I don't see a “Rerun Automatically” option. I've searched high and low and can't figure out how to disable the behavior of having my tests run whenever I save a file.
The option is available in the Run tool window when running unit tests:
Thank you so much, had the same issue and already modified halve of my settings, till I finally I found this thread. Intellij should really consider either removing this feature or make it way more obvious, when it is activated. Intellij becomes extremely annyoing, when accidently activating it.
I've activated this incredibly annoying feature and can't find this “Run tool window”. If I go to Run→Run… I can just open Run configurations and it looks completely different to that.
edit: Never mind I found it in the test panel toolbar.
Run tool window appears after your run something. It's the same tool window where you see your tests output.
Could it be that this tool has changed in PyCharm 2005.2.x? There is no button for “Rerun automatically” that could be disabled.
When I execute `Shift+F10` (= Run current file), I get
The is no location to disable an automatic run of DocTests.
I have also disabled the “Analyze Python code in docstrings”, but it is still executing the DocTests
Thomas Haslwanter create a new report on YouTrack as the Rerun automatically option appears to be disabled on your screenshot so additional investigation is required. Make sure to provide the IDE logs from Help | Collect Logs and Diagnostic Data
This is by far the most horrible feature of intellij. Even by trying to follow the instructions on this page it is not working. Pressing stop also restarts the test. Can this be disabled permanently in settings?
Hello Erik Brakkee
Could you please try disabling all third-party plugins by going to Settings | Plugins | ⚙ | Disable all downloaded plugins, then clicking OK. Then, verify if the issue persists. If it's resolved, then start enabling the plugins one by one to find the problematic one.
If this doesn't work, please confirm you're running IntelliJ IDEA and also share the version of it.