Hello,
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 ?
Thanks,
Raymond
Hi @Ray Lee
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.