ScriptRunner Scripted Plugin - run test from Intellij Idea

Ksawery Karwacki August 1, 2018

 I configured my plugin using SR documentation and tests work from website runner but I cannot run tests from Intellij and keep getting error: 

  • java.lang.Exception: No tests found matching method name filter from org.junit.runner.Request$1@292a7997 
  • 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:327)

 

My test class looks like this: 

package it.com.example

import com.onresolve.scriptrunner.canned.common.admin.ScriptRunnerTestRunner
import org.junit.runner.RunWith
import spock.lang.Specification


@RunWith(ScriptRunnerTestRunner)
class RunnerSampleSpecTest extends Specification {

def "test something"() {
expect:
true
}
}

 

I had to shorten command line in junit configuration, maybe that's the reason?

2 answers

0 votes
Volodymyr Havryliuk May 29, 2019

I also have the same issue.

0 votes
Florian Giesler February 20, 2019

Hello,

I have a similar problem, you were able to solve it.
If that is the case, your solution would be really helpful and maybe even the solution to my problem.

Volodymyr Havryliuk October 30, 2021

In order to tests where found when running them from Idea, package with your tests should be specified in Scriptrunner UI

Suggest an answer

Log in or Sign up to answer