Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 12 Next »

Introduction

Projects using based on common_build.xml are provided with 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:

I will attempt to answer these here...

Common questions regarding Bamboo and unit tests

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.  

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.

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:

  • 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.
  • 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)
  • 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
  • No labels