views:

789

answers:

2

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? I'd like to have that displayed next to the coverage graph. Any help would be appreciated. Thanks.

+3  A: 

Hi Jeff.

Hudson has a set of plugins which you can use to extend its functionality to best suit to your requirements. One of this plugins is the Cobertura Plugin. Once you've installed it, in each of your project's configuration a new Post-Build action will appear with the title 'Publish Cobertura Coverage report'.

With this configuration Hudson is able to build cobertura graphs from a generated report. It's up to you to make your builds generate that report. For this task, if you're using maven, plugins are available to add them to your reports.

Hope it helps. Carlos

Carlos
Hi Carlos, thanks for that info. I am at that point and have the graphs generating. I was just trying to figure out if there is a way to get the trend graph to show on the project's main page with the unit test trend graph, rather than having to click into an individual build.
Jeff Storey
That's it Jeff, by installing the Cobertura Plugin and mark the corresponding action on post-build actions at your project's configuration the cobertura trend graph will appear at your project's main page, just below the tests one.
Carlos
Jeff, have a look through the release notes of the Cobertura plugin (and hudson) as I recall an issue where it wasn't showing the coverage for some reason. I have had issues from time to time where for example it wouldn't show coverage if the build had failed etc.
gommo
Carols, gommo, no such luck here. I do have it enabled in the post build actions, but it doesn't appear on the main page. I have to go into the specific build and then click on coverage report (or into the site documentation).I'm running hudson 1.309 with cobertura 0.8.8.
Jeff Storey
+1  A: 

The graph does not show up in when running a maven2 project, only a freestyle project.

Jeff Storey
Apparently this does not show up under Ivy projects either.
teabot