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.

3
6 comments

Hello,

Please check that “Rerun Automatically” option is not enabled in Run tool window.

2

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.

 

0

The option is available in the Run tool window when running unit tests:

 

9

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.

1

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. 

0

Run tool window appears after your run something. It's the same tool window where you see your tests output.

0

Please sign in to leave a comment.