0

So the question is: is there a way to have the cobertura test coverage graph be shown on the front page of a project, similar to the test trend graph, with a maven2 project?

refs: cobertura graph in hudson How to generate Cobertura Code Coverage Report using Maven from Hudson

If not, is this a bug I should report to them, do you think?

Thanks! -r

Community
  • 1
  • 1
rogerdpack
  • 62,887
  • 36
  • 269
  • 388

1 Answers1

2

The Hudson Cobertura plugin should allow a build to be configured with the path to a Cobertura report (in XML format), from which Hudson can then pull the coverage report and render it. The build will still need to run Cobertura itself, either as part of a full site generation, or using cobertura:cobertura.

From memory, look towards the bottom of the project's configuration page (under Post-Build actions); the setting is labelled something like "Publish Cobertura report".

Rob
  • 47,999
  • 5
  • 74
  • 91
  • yeah, I do run cobertura:cobertura and site. Your post pointed me in the right direction, though. Upgrading the cobertura plugin from 0.86 to 1.0 seemed to have fixed that problem – rogerdpack Dec 30 '10 at 23:58