No tests found matching Tests from org.junit.runner.Request

Answered

Updated to 2016.1.3 and I'm noticing problems re-running failed junit tests.

This is after running a test where one or more tests fail. When I hit the 'ReRun Failed Tests' button I get an Filter.initializationError and this error message from IDEA instead of my tests being rerun:

java.lang.Exception: No tests found matching Tests from org.junit.runner.Request$1@59e4f5f5

at org.junit.internal.requests.FilterRequest.getRunner(FilterRequest.java:37)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:98)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:42)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)

This is IDEA 2016.1.3 on CentOS 6 with junit 4.10 I think. This definitely used to work. I can run the tests the first time, but reruns error.

1 comment
Comment actions Permalink

 

Gah! nevermind found the problem though IDEA is behaving inconsistently. The test class was marked with @Ignore which I hadn't noticed. I added a new test to the the bottom of the test class and ran that method as a test which IDEA allows (?). But if it fails rerun gives that somewhat cryptic error message above, even though it was happy to run the method the first time.

 

0

Please sign in to leave a comment.