1

In the script runner documentation related to testing (Write and Run Tests) it is mentioned that you can run unit test directly from the IDE by setting -Dbaseurl= to point to a Jira instance.

Now, I don’t want to run these tests from my IDE, but instead I want to run them from maven when building my project.

If remote testing is supported for IDEs, running the tests from maven should work too. Is just that I was not able to make it run yet.

Any idea how I can achieve this ?

So far I tried using 'jira-maven-plugin' and 'maven-surefire-plugin', passing the 'baseurl' in both .pom file and in the maven command line. My tests are defined using the Script Runner specs: ...extend Specification ...

When run during the maven test phase, my tests are always acting as they are supposed to be run locally, complaining about resources not being mocked. I know the tests are correct for remote execution as they pass if run in the Jira script runner console.

Thanks.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.