Reset Test-runner choice for single test (gradle vs. platform)

Answered

Hello. TL;DR: Is there a possibility to reset my choice of test-runner for a particular test in IDEA?

 

In the global settings (Build, Execution, Deployment -> Build Tools -> Gradle -> Runner)  there is a choice from three options: "Platform Test Runner", "Gradle Test Runner" and "Let me choose per test". I prefer to use the latter as it provides more flexibility. Now, the problem:

1. I go to some JUnit test, e.g. MySuperbTest.java.

2. Follow it with a click on a green triangle to run all tests in that class.

3. Popup with a choice between Gradle vs. Platform runner appears as expected.

4. Select any of these two.

Problem: now my choice for this test becomes permanent which is not what I'd like to see. If I click on green triangle again, I won't be asked to select runner again. I agree that generally it's a good thing that IDEA remembers my choice, but in my particular case which is irrelevant for the question I'd like to be provided with a selector popup each time I click on a triangle. Is there a possibility to enable such behaviour as default? A workaround I use is tampering with temporary run configurations or disable+enable the global setting to reset my preferences.

The ideal solution, as I see it, would be to add a checkbox in global settings near the test runner selection saying "Don't remember my choices" which is only available when "Let me choose per test" is selected.

 

Thank you for your attention. I understand that this is barely an issue, but if resolved it'll surely make at least one more developer happier :).

 

IntelliJ IDEA 2018.3.4 (Ultimate Edition)
Build #IU-183.5429.30, built on January 29, 2019

JRE: 1.8.0_152-release-1343-b26 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 4.9.0-8-amd64 (Debian)

0
1 comment

Request is welcome at https://youtrack.jetbrains.com/issues/IDEA.

Some users want it to work depending on the build/run delegation settings: https://youtrack.jetbrains.com/issue/IDEA-190181.

0

Please sign in to leave a comment.