Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Is it possible to use Clover in Bamboo for PHP, Perl or Python?

Is it possible to measure code coverage and display reports for non-JVM languages (such as PHP, Perl or Python) using Bamboo Clover Plugin?

1 answer

1 accepted

3 votes
Answer accepted

Clover itself measures code coverage for Java and Groovy languages only.

However, it's possible to hack the Bamboo Clover Plug-in and use it to display reports on the "Clover" tab for other languages as well. Plug-in looks for two kinds of reports:

  • in XML format (e.g. target/site/clover/clover.xml)
  • in HTML format (e.g. the "Clover Report (System)" artifact)


Integrating XML report

There is a number of code coverage tools, which can produce coverage report in XML file format compatible with Clover's one, for instance the PHPUnit. In such case you have to enable manual Clover integration and point to XML file produced by that tool. Thanks to it, the "Clover" tab on a plan summary page will display a coverage bar.


Integrating HTML report

A lot of tools can generate HTML reports as well. Examples are: Cobertura/JaCoCo for JVM languages, XCoverage + nose-html for Python, PHPUnit. Although they look differently than Clover's report, you can still embed them in the "Clover" tab on a job summary page. In order to achieve this:

  • generate HTML report by that other tool
  • put the report into an artifact named "Clover Report (System)"
  • note: this HTML report shall contain 'index.html' page
  • note: the XML report must be also present (otherwise the "Clover" tab will not appear)
  • note: the "Clover" tab embeds a report in <iframe> with no scroll bars by default; in case you need scroll bars, you'd have to "cheat" the Clover plugin by pretending that this is Clover 4 HTML report - see discussion in this issue



Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Marketplace Apps & Integrations

Happy New Year and Welcome New Marketplace Partner Program Partners!

Happy New Year! We hope you all had a safe and restful holiday season. 2020 was a unique year full of unforeseen events; however, as we enter the new year of 2021, we’re optimistic for the light at t...

505 views 7 18
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you