No tests listed in order to create a test run configuration

Issue #1722 resolved
Margaret Martin created an issue

I’ve deployed the code to my org in & outside of IC, regenerated the OST, and when I go to create a test configuration, I don’t have any tests listed to choose from. There are tests in the org.

idea.log is attached

Comments (15)

  1. Scott Wells repo owner

    Margaret, I'm not seeing anything related to unit tests in the attached log. All I see are a bunch of "project roots have changed" messages which are totally benign (in fact, I've been meaning to ask JetBrains to change the logging level for that).

    So just to clarify, you have the test classes in the local project, and they're under a configured source root, and they're properly annotated as @IsTest or have the testMethod modifier, correct? Do you see the gutter icon beside those test classes/methods for quick execution of them?

  2. Margaret Martin reporter

    Hey Scott - Yeah, I didn't see anything interesting in the log either, but I don't really know what I'm looking for, so I figured I'd drop it in. The classes are recognized and I can run via a right click. I just can't create a test config which is slightly less convenient :) I'm happy to jump on a screenshare with you if that'd help

    Thanks - Margaret

  3. Margaret Martin reporter

    Hey Scott -

    Just wanted to check if there was any debugging info I could collect for you for this issue?

    Thanks -

    mm

  4. Dmitriy Yurkin

    Hey, Scott! I have the same issue and cannot even choose any test class to run for about one week. Have no idea what to do with it. Could you please help us with it? And I also have no play buttons near test class and methods as usual.

  5. Scott Wells repo owner

    Hi, Dmitriy. I should be working with Margaret today to debug this a bit. Hopefully I'll get to the bottom of it quickly that way, but if not I may reach out for some logs from you.

  6. Scott Wells repo owner

    I just met with Margaret and am adding some additional diagnostic logging that will hopefully help me to determine and fix the issue. I'll post again here shortly once I know more.

  7. Scott Wells repo owner

    This is a build based on the current official build but with significant additional diagnostic logging in the unit test run configuration editor form. To install it, download the attached archive (but don't extract it) and then use Settings/Preferences>Plugins>Install plugin from disk (under the gear drop-down menu).

    After the IDE restarts, please add the following to Help>Diagnostic Tools>Debug Log Settings:

    #com.illuminatedcloud.intellij.unittest.ApexUnitTestRunConfigurationEditorForm
    

    The leading # must be present. Then open the run configuration editor and wait for any progress indicator to complete.

    Finally grab all idea.log* files with timestamps after this plugin was installed and email them to support@illuminatedcloud.com. Multiple log files will be required because this adds EXTENSIVE additional debug logging. You can find the logs using Help>Show Log in Explorer/Finder/Files.

    Note that if this suddenly starts working with this build, I did include two prospective fixes. Please let me know if that's the case. Otherwise hopefully the debug logs will make it clear what's happening.

  8. Scott Wells repo owner

    Dmitriy, I've verified with Margaret that the latest attached build resolves the issue, for her at least. Feel free to install it and let me know if you also see that it's resolved. If so, you can disable the debug logging identified a few comments back by removing that entry as it does slow things down quite a bit due to the extensive logging. You can stay on this build until later this week when I release an official build with this fix and a few others.

  9. Dmitriy Yurkin

    Hey Scott! I am glad to hear that you’ve fixed the build, because I can not download the attachment. But it is ok for me to wait until you release the new build. Thanks!

  10. Log in to comment