Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Script Runner - IntelliJ Test integration



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 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

I have the same issue.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira Service Management

Jira Service Management Documentation Opportunities

Hello everyone, Hope everyone is safe! A few months ago we posted an article sharing all the new articles and documentation that we, the AMER Jira Service Management team created. As mentioned ...

285 views 0 6
Join discussion

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