Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem executing remote Spock test due to java.lang.Exception failure #1587

Open
hellboy81 opened this issue Jan 15, 2019 · 3 comments
Open

Comments

@hellboy81
Copy link

Trying to execute remote tests using JUnit 4.12 with Groovy&co steroids from IDEA:

image

 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

@kcooney
Copy link
Member

kcooney commented Jan 15, 2019

IDEA is passing a Filter to JUnit to select which tests to run, but that filter filters out all tests. Three possibilities:

  1. The filter returns false when passed the Description for the test
  2. The filter returns false when passed the Description for one of the parent suites of the test.
  3. 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.

@marcphilipp
Copy link
Member

@hellboy81 what's com.onresolve.scriptrunner.canned.common.admin.RunUnitTests?

@volodymyr-havryliuk
Copy link

@marcphilipp it's from ScriptRunner plugin for Jira.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants