Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Script Runner - IntelliJ Test integration Edited


i was following the following Guide for Testing:
Testing your Code


And stumbled into the following Error's while trying to get run the Test from the IDE.

2019-02-20 11:03:20,452 http-nio-8080-exec-7 ERROR admin 663x727x2 1y98v /rest/scriptrunner/latest/canned/com.onresolve.scriptrunner.canned.common.admin.RunUnitTests [c.o.s.c.common.admin.RunUnitTests] *************** FAILED initializationError(org.junit.runner.manipulation.Filter) ********************
2019-02-20 11:03:20,459 http-nio-8080-exec-7 WARN admin 663x727x2 1y98v /rest/scriptrunner/latest/canned/com.onresolve.scriptrunner.canned.common.admin.RunUnitTests [c.o.s.c.common.admin.RunUnitTests] Test: initializationError(org.junit.runner.manipulation.Filter) failed
java.lang.Exception: No tests found matching method name filter from org.junit.runner.Request$1@21909616
at org.junit.internal.requests.FilterRequest.getRunner(
at org.junit.runner.JUnitCore$run$ Source)
at com.onresolve.scriptrunner.canned.common.admin.RunUnitTests.doScript(RunUnitTests.groovy:326)

Thats my corresponding test class:

package de.mycompany.jira.example

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

class TestRunnerSampleSpec extends Specification {

def "test something"() {


i suspect that i have to set the default package for the test, but i don't know where and how.



Moreover, there was already a similar question in the community, unfortunately no one could answer it.

That's why I link it again

Similar question from mid 2018


I am very thankful for ever idea and tipp to get around this issue :)

2 answers

I have the same issue.

I was able to run tests from Idea when in field Packages (screenshot) in Jira package with tests was specified.  For example, if you tests are in com.yourcompany.scriptrunner.test, this package should be specified in Jira UI. It took a lot of my time to figure this out.  done.PNG

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

⏰ Day in the life of a Jira Admin!

Hello Community! We thoroughly enjoyed this just-for-fun conversation in the Jira Admin Group about what it's like to be a Jira Admin. For #JiraJuly, our talented designers created these graphics t...

909 views 2 22
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you