5

NoseXUnit used to be able to generate Clover-compatible xml files, but it is no longer maintained, and does not work with recent versions of Nose.

How can one generate Clover-compatible (Bamboo) xml which includes coverage data nowadays?

Tarnay Kálmán
  • 6,907
  • 5
  • 46
  • 57

1 Answers1

5

To my knowledge nose can only output Cobertura format. This is done by passing --with-coverage and --cover-xml nose coverage options. You can then use coverage2clover utility to convert coverage.py xml report to Atlassian Clover test report format understood by Bamboo.

Oleksiy
  • 6,337
  • 5
  • 41
  • 58
  • Tried. It generates xml output quite different from what Clover expects. – Tarnay Kálmán Sep 23 '14 at 20:22
  • I added conversion instructions, did it work for you @tarnay-kálmán? – Oleksiy Sep 25 '14 at 06:18
  • 4
    Yes, it worked, kinda. The only things Clover ended up displaying were 2 charts about "Coverage History" and "Lines of Code History". I ended up generating html reports using nose during the build, and setting the "Clover Report (System)" artifact to copy that, and now above the charts the "View latest Clover HTML report" link opens nice nose-generated reports. – Tarnay Kálmán Oct 03 '14 at 10:10
  • 1
    Also check out this PyPI package as another alternative to covert to Clover format: https://pypi.python.org/pypi/cobertura-clover-transform – phoenix Feb 09 '16 at 17:28
  • @TarnayKálmán is correct, see the official response here: https://answers.atlassian.com/questions/280592/answers/2593337/comments/36115268 – phoenix Feb 09 '16 at 17:43