junit4
junit4 copied to clipboard
Problem executing remote Spock test due to java.lang.Exception failure
Trying to execute remote tests using JUnit 4.12 with Groovy&co steroids from IDEA:

java.lang.Exception: No tests found matching method name filter from org.junit.runner.Request$1@3af039ed
at org.junit.internal.requests.FilterRequest.getRunner(FilterRequest.java:40)
at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
at org.junit.runner.JUnitCore$run$0.call(Unknown Source)
at com.onresolve.scriptrunner.canned.common.admin.RunUnitTests.doScript(RunUnitTests.groovy:320)
See also
Issue can be reproduces also by another JUnit users on this repo
IDEA is passing a Filter to JUnit to select which tests to run, but that filter filters out all tests. Three possibilities:
- The filter returns false when passed the
Descriptionfor the test - The filter returns false when passed the
Descriptionfor one of the parent suites of the test. - Spock uses a custom runner which has a bug in the filtering code
Either the IDEA team or the Spock team should be around to debug this.
@hellboy81 what's com.onresolve.scriptrunner.canned.common.admin.RunUnitTests?
@marcphilipp it's from ScriptRunner plugin for Jira.