Cannot Run Unit Tests
I am running IDEA CE 14.1.5 and I have a class marked @isTest. I added an Apex Unit Test Configuration and checked the class that I needed to run. However, when I click play, my environment doesn't do anything. I searched issues and it seems to be working well for others. Is it possible I'm not enabling something on either salesforce or your plugin?
Comments (7)
-
repo owner -
reporter - attached idea.log
-
repo owner Aha! Easy one...you need to enable the Coverage plugin in IntelliJ IDEA:
2015-10-15 17:23:17,462 [ 21427] ERROR - til.concurrency.QueueProcessor - com/intellij/coverage/CoverageHelper java.lang.NoClassDefFoundError: com/intellij/coverage/CoverageHelper at com.illuminatedcloud.intellij.unittest.ApexUnitTestRunProfileState.execute(SourceFile:140) at com.intellij.execution.runners.DefaultProgramRunner.doExecute(DefaultProgramRunner.java:33) at com.intellij.execution.runners.GenericProgramRunner$1.execute(GenericProgramRunner.java:43) at com.intellij.execution.RunProfileStarter.execute(RunProfileStarter.java:39)
Just go into Settings>Plugins and select that, then restart IDEA. Should work fine after that! Let me know if not.
-
reporter Yes that did the trick! Can I request that you add Coverage as a dependency of Illuminated Cloud? By this I mean when you enable or install the plugin, it will automatically enable coverage for you.
-
repo owner Glad that did it. I actually do have Coverage set up as a dependency, but right now I have it set up as an optional dependency. Let me think about setting it up as a hard dependency a bit. Either way I think I could provide more proactive reporting of when it's unavailable and a user wants to use unit testing/coverage.
-
repo owner - changed status to resolved
-
repo owner - changed component to Apex Unit Testing
- Log in to comment
What you show in the image looks correct. Can you provide the contents of your idea.log (Help>Show Log in Explorer) so that I can see if there's anything obvious going on there?