How to enable Run context menu for JUnit/Groovy test classes

I had been running a Diana build previously and updated to 8.1.3. Running on Mac OS X 10.5.6. Haven't applied latest Java update.

I have a large subversion project that is maven-based. I used mvn idea:idea to set things up. That seems to work although I get funny messages about unknown module types (defaulting to Java) and problems with detecting facets. But I had these before too. I can even remote debug my web app against JBoss.

Before though, when I was editing a JUnit test case in my project, without setting up a specific Run configuration for that test class, I could still compile and run that test case inside of Idea.

Now, there is no Run context menu item to execute for any of my test classes. All of them run quite nicely using mvn on the command line.

With an earlier version of 8.x of Idea, I was able to run JUnit test cases using the context menu but I then had to do some configuration (can't remember the exact steps) to be able to run Groovy test classes from inside Idea on a per class basis.

Now I can't run any test classes (Groovy Test Cases or JUnit test cases) from inside of Idea 8.1.3.

Any ideas what I must do to get Idea to allow me to execute test cases again?

Thanks

Jim

6 comments
Comment actions Permalink

I did check and if I set up a Run Configuration for a specific JUnit test class and then I Run that configuration I do get that JUnit test to run correctly.

I tried a similar thing for a Groovy test class -- set up a Run Configuration for that Groovy test class -- and tried to run.

This failed with some weird message in the message console relating to a Invalid mapped property.

So I can run specific JUnit tests with a specific Configuration defined but I can't run any Groovy test classes using the same approach.

Jim

0
Comment actions Permalink

Well, thank goodness for Time Machine.

I brought back the Diana Build (#9825) that I was using and that I recalled did allow me to see a Run menu item even when there was no specific Run configuration defined.

Sure enough, the missing Run menu item was there.

So perhaps in moving to 8.1.3, there is some configuration data (plist contents?) that needs to be removed, or I need to set things up as a fresh install of Idea?

Any advice about how to make 8.1.3 work like Diana works would be appreciated.

Thanks again.

Jim

0
Comment actions Permalink

This failed with some weird message in the message console relating to a Invalid mapped property.

Looks like validation problems. Please go to Compiler | Validation
settings and uncheck all the checkboxes there.

0
Comment actions Permalink

Hello James,

Do you have installed third-party plugins?

Could you please give us a sample project to reproduce the issue?

Thank you.
-


Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

Well, thank goodness for Time Machine.

I brought back the Diana Build (#9825) that I was using and that I
recalled did allow me to see a Run menu item even when there was no
specific Run configuration defined.

Sure enough, the missing Run menu item was there.

So perhaps in moving to 8.1.3, there is some configuration data (plist
contents?) that needs to be removed, or I need to set things up as a
fresh install of Idea?

Any advice about how to make 8.1.3 work like Diana works would be
appreciated.

Thanks again.

Jim

---
Original message URL:
http://www.jetbrains.net/devnet/message/5240620#5240620



0
Comment actions Permalink

Hello,

I am having the same issue with trying to run JUnit tests.  I do not know if this is relevant, but my project is synchronized with eclipse.  Also, I do not even have a Compiler/Validations option in the settings.

Please help...this is really slowing me down--something IDEA rarely does

Thanks,


Jeff

Screenshot.png

0
Comment actions Permalink

Never mind...4 seconds after posting this I checked and found that (for some unknown reason) JUnit plugin was not enabled.

Sorry,  Jeff

0

Please sign in to leave a comment.