JUnit Parser task can not find JUnit results
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
JUnit Parser task is not generating the test results because it can't find JUnit results file.
Diagnosis
The following message can be found in the build logs which shows where the test results are being parsed:
1
Parsing test results under /bamboo/bamboo-agent-home/xml-data/build-dir/PROJECT-PLAN-JOB1...
Cause
The most common cause of this error is that the JUnit Parser task is not configured with the correct JUnit test results location.
Solution
Check the build logs and search for where the test results are being generated, such as:
1
Automated Testing is complete. Result file located at /bamboo/bamboo-agent-home/xml-data/build-dir/UnitTestResults/TestResults.xml
Go to the JUnit Parser task configuration and change the path to the correct directory
Was this helpful?