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.
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