You may be noticing emails from Bamboo indicating platform 2.0 builds are failing due to test failures. You are seeing this because platform 2.0 projects are being upgraded to the latest common_build.xml which includes Cobertura code coverage and JUnit test targets. Bamboo is now executing these targets and producing test and coverage reports.
This may raise some general questions, such as:
What do I do about my failed Bamboo builds?
How do I see my test results in Bamboo?
How do I get my unit tests running in Bamboo?
I will attempt to answer these here...
What do I do about my failed Bamboo builds?
When a unit test fails during a continuous integration build, Bamboo will mark the build as failed. For example, the platform engine project is shown (see image below) to have failed because 1 test out of 27 is broken. Tests are run in our continuous environment in order to provide visibility to the engineering team so we can react to unstable builds and bring them back to stability. Unable to render embedded object: File ( Project Summary - Pentaho-Build.Bamboo - Mozilla Firefox.png) not found.
How do I see my test results in Bamboo?
If you see your project is failing because of tests, you can see the test results in Bamboo by clicking on the link to the failed build, in this case it is 20-ENG-107. You will then see an overview of the build. Your test report is visible in the Test section (see image below). So in this example you can see the test that failed is called Audit sql entryin AuditSQLEntryTest.
!"Screenshot-BI-Platform-open - ENG20-trunk 107: Build Result Summary - Pentaho-Build.Bamboo - Mozilla Firefox.png"!
How do I get my unit tests running in Bamboo?
If your project is building on Bamboo but is not reporting on unit tests, this could be because:
a) Your Ant file does not include a test and/or coverage target
- If these targets don't exist, Bamboo cannot report anything. Once you have added these targets (or ported your project to the common_build.xml) then talk with the build team about getting your reports working.
b) Bamboo is not executing your test and/or coverage Ant target
- Get with the build team or make the change yourself (see Enrico for Bamboo permissions)
c) The build team has not gotten to it yet
- One solution here is to get this effort placed on the build backlog
- The other solution is to setup your CI build yourself in Bamboo. You will need to interact with Enrico for a Bamboo login and build creation credentials