How to configure IntelliJ for running test with JUnit 4?

Posted by fabien7474 on Stack Overflow See other posts from Stack Overflow or by fabien7474
Published on 2010-05-08T14:23:53Z Indexed on 2010/05/08 14:28 UTC
Read the original article Hit count: 538

Filed under:
|
|
|
|

Should be simple but I couldn't figure it out.

When running my unit test inside IntelliJ, I could not find a way to tell IntelliJ-9.0 that it should use JUnit4 instead of JUnit3.

When a test fails, IntelliJ console displays:

MyTests.testConstraints(MyTests.groovy:20) at

...

com.intellij.junit3.JUnit3IdeaTestRunner.doRun(JUnit3IdeaTestRunner.java:108) at com.intellij.junit3.JUnit3IdeaTestRunner.startRunnerWithArgs(JUnit3IdeaTestRunner.java:42) ...

Do you know how to replace JUnit3 by JUnit4 ?

© Stack Overflow or respective owner

Related posts about intellij-idea

Related posts about grails