ctrl-shift-f10 run all tests in class rather than single test

Issue #1459 invalid
Oscar Scholten created an issue

Hi - I’ve run into a small nuisance: the default IntelliJ shortcut on Windows to start a test method when your cursor is in the method itself is ctrl-shift-f10. This works fine for a Java project in IntelliJ. When you are in an Apex test class, in a method annotated with @IsTest, pressing ctrl-shift-f10 runs all test methods in that class, rather than just the one you are in.

Let me know if I can help debug this.

Comments (5)

  1. Scott Wells repo owner

    My guess is that this is something that must be implemented explicitly by a plugin. I'll take a look.

  2. Scott Wells repo owner

    Hmmmm...I'm unable to reproduce this. I'm on Windows and I place the cursor on or in an Apex test method, then press Ctrl+Shift+F10. As a result the current test method is executed, and only the current test method. Other test methods in the same class are not included in the resulting run.

    Can you provide a very simple class that reproduces this behavior for you? When it reproduces, do you happen to have an existing Apex unit test run configuration with the same name as the one executed? If so, how is it configured?

  3. Oscar Scholten reporter

    Well, this is embarrassing on my part - I cannot reproduce it either anymore. I’ve seen this happen a couple of times over the last few weeks, and verified I saw this behavior before I submitted this issue. Anywho, I’ll mark the issue as invalid and will re-open it in case I see it again. Or do you typically close these issues?

    Thanks for the support!

  4. Scott Wells repo owner

    Happens to all of us...some of us (speaking about myself!) more often than others... Glad it's working for you, but if you do see the same behavior again just re-open this and let me know.

  5. Log in to comment