JUnit parsing in Bamboo

Bamboo can parse any test output that conforms to standard JUnit XML format. The implementation of this is pretty simple — Bamboo looks for specific tags in the JUnit XMl output.

A failed JUnit XML report, that is successfully parsed by Bamboo.

Click here to download the XML report.

A passed JUnit XML report, that is successfully parsed by Bamboo.

Click here to download the XML report.

Click here for the AntXmlResultParser.java file which contains the Bamboo code for parsing JUnit XML output.

For those interested in the XUint XML Schema, please see this document.

Was this helpful?

Thanks for your feedback!

12 Archived comments

  1. User avatar


    Please can you produce a XSD so that it is possible to quickly validate

    11 Nov 2010
  2. User avatar


    On my project, we use this http://windyroad.org/dl/Open%20Source/JUnit.xsd.

    It works fine (wink)

    09 Nov 2011
  3. User avatar

    Diego N. Pamio

    The link to Click here for the AntXmlResultParser.java doesn't work. 

    26 Apr 2012
    1. User avatar

      Diego N. Pamio

      Never mind, I've found it attached in this page.

      Question: how do I change the URL of the link that links the current failing test to the "test page"? I want to redirect that to a custom-made page (an HTML inside the build's artifacts).

      26 Apr 2012
    1. User avatar


      Neither do the "Click here to download the XML report" links.
      Which is not big deal, but I thought I'd point that one out too. 

      02 Apr 2013
  4. User avatar


    How does JUnit parser figure out which test cases are the same when quarantining them? It seems class name is not the most significiant value as the source code seems to suggest.

    21 Nov 2013
    1. User avatar

      James Dumay [Atlassian]

      Both the class name and test method name are used to uniquely define the test and its quarantined state. If you are having troubles with quarantine (and this appears to you not to be the case) please contact support.

      21 Nov 2013
      1. User avatar

        Vlad Bachurin

        What if class and method name pair is the same along the whole test? (in my case, if JUnit Parser is used for TestNG tests with DataProvider). Will Bamboo think that the test method was executed only once in this case? If yes, is there a way to make Bamboo display the correct count?

        12 Dec 2013
  5. User avatar

    Noe Avila

    Where should I put the file AntXmlResultParser.java?

    29 Oct 2014
  6. User avatar

    Thomas Yun

    Links to both pass and fail XML reports are broken.

    27 Nov 2014
  7. User avatar

    Jan z Ondříkovic

    Hi, I have a problem with visualisation of JUNIT xml elements: <property> and <system-out> is there any way to visualise them in after Bamboo ends the build plan?

     Link to the question is: https://answers.atlassian.com/questions/17433208

    29 Jun 2015
Powered by Confluence and Scroll Viewport