Bamboo doesn't recognize test in my Spring project

I have a Spring project (Apache CXF, Spring, Hibernate, Maven ...) hosted on BitBucket, and I'm trying to use Bamboo as my CI server. My idea is to deploy the code directly to Heroku from Bamboo, so the deployment time is automated.

I developed a plan with several objectives to achieve this. First I have the task of checking the source code and the builder task. Both of them work, code compilation and testing pass, I see this in the task log. The problem is that Bamboo does not seem to recognize the tests (he notes that the task is without tests).

I also tried to create a new JUnit test task, and this is even worse. The magazine shows that everything works correctly, but Bamboo notes the plan as a failure after completing the test task.

Any ideas?

+4
source share
1 answer

You do not know which version of Bamboo you are using, but in the version that we have, you must enable the evaluation of the unit test result on the Builder tab. See the attached screenshot and make sure it is turned on, and the directory parameter points to the directory in which Maven Surefire creates the test results (in XML format). enter image description here

+2
source

All Articles