Search code examples
bamboobamboo-artifactsbamboo-specs

How to publish gradle test result in bamboo build?


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.


Solution

    • When using Maven tasks, there's a checkbox "The build will produce test results.". This does 2 things: parses JUnit test results and breaks the build if it can't find any.
    • When using any other task, you have to add a (final) "JUnit Parser" task. This does the same as above. These are the patterns I use to cover both Maven and Gradle builds: **/target/surefire-reports/*.xml, **/target/jasmine/TEST-jasmine.xml, **/build/test-results/test/TEST-*.xml