You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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