I am using bamboo build definition to build java code and also running tests but don't have idea about how to publish test result.
How to publish gradle test result in bamboo build?
1.7k views Asked by Naveen Kumar At
2
There are 2 answers
0
On
- Atlassian Bamboo provides a task to parse unit test results. using Junit Parser.
- You can select task of type Junit Parser in build plan.
- You can add this to final as well but if your CI plan fails before it is able to generate the test results it will not shoe the reports and the final task will fail as well.
- You will have to provide relative path to test results generated after you test execution.
- If you provide a pattern like **/target/surefire-reports/*.xml it will pick up test results for all the submodules of a project.
- Use following link to see how documentation suggest to use this feature to parse your unit test results to show on bamboo UI. Bamboo Junit Parser Task.
**/target/surefire-reports/*.xml, **/target/jasmine/TEST-jasmine.xml, **/build/test-results/test/TEST-*.xml