JUnit Parser task can not find JUnit results
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.
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:
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:
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