2

Every time I try to run a single test (or test class) by right clicking > run or debug, Intellij creates a new run configuration for it, running the same test 3 times gives MyTest, MyTest (1), MyTest (2), etc.

Is there a way to stop it from auto creating these configs and just running the test, or at least create 1 config max? I know I can go to the run config and hit run from there, but I prefer the right click > run method.

1 Answers1

1

Yes, there is.

In settings, section "Advanced Settings", set Temporary Run/Debug configurations limit to 0, as shown: IntelliJ IDEA Advanced settings.

Source: IntelliJ IDEA documentation on Run/debug configurations

The maximum number of temporary configurations is 5. The older ones are automatically deleted when new ones are added. If necessary, you can increase this limit in Settings/Preferences | Advanced Settings | IDE | Temporary configurations limit.

raczek
  • 11
  • 1