Our java project uses maven to build and the project uses JUnit to let maven to run internal unit tests automatically. However, for every build process, the total test in each build is shown as zero. But in the log file, we see every build action triggers a set of unit tests and logs are shown to unit test results.
Would you advise where we need to configure such that Bamboo build can detect how many tests are included in a build process ?
Bamboo identifies the number/details of tests from test results. This is not an automatic task. Actually, you need to create a task to parse the results considering their file name, location, and format.
These are the parsing tasks you will find by default e.g. Bamboo 6.8.x:
The first one in the list is the one you need to configure to parse the test results your build is generating. Once that task is added and correctly configured you should be able to see the tests passing and failing for each build.
Please let me know if you face any issues with this.
I was able to find reports for issues related to JUnit parsing for really old versions of Bamboo (before 4.x). While I cannot tell you precisely how the parser task was implemented in that time neither how the UI of it looked like (we are talking about a version of Bamboo released 7 years ago), I can tell that some resource was available.
I hope that is helpful.
G’day Community! As we gear up to introduce Bamboo Data Center to the world, we wanted to make sure that we shared a bit more about Bamboo, the product. Our team has put together an overview video ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events