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

How to solve error when executing Ant JUnitLauncher task?

Hi, 
in my Ant script, I use the following code to run junit tests:

<junitlauncher haltOnFailure="true" printSummary="true">
<classpath refid="test.classpath"/>
<testclasses outputdir="reports">
<fileset dir="bin">
<include name="**/*.class"/>
</fileset>
<listener type="legacy-xml" sendSysOut="true" sendSysErr="true"/>
<listener type="legacy-plain" sendSysOut="true" />
</testclasses>
</junitlauncher>

If I start this target via command line, everything works fine. But if Bamboo starts the target, it logs the following error:

build.xml:21: Failed to launch in-vm tests

I found this error message in line 222 of JUnitLauncherTask.java here. But I have no idea, how to fix it.

I'm using ant 1.10.7 and Java JDK 13.0.1. Also I'm using a virtual machine.

 

At all I just want to run one JUnit test with bamboo.

 

Thanks in advance,

David

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo Data Center 8.1 is now available

G’day Bamboo customers, Bamboo DC 8.1 is now available with it the following features and programs: SAML 2.0, OpenID Connect, and Crowd SSO In order to help admins with a simplified user manage...

149 views 0 4
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