cobertura graph in hudson

有些话、适合烂在心里 提交于 2020-01-14 13:55:50

问题


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.


回答1:


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 are using maven, plugins are available to add them to your reports.

Hope it helps.




回答2:


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




回答3:


Here's posts for

1. Setting up a pom.xml for generating reports Cobertura, Findbugs, Checkstyle and Surefire unit test results. development-environment-for-google-app

2. And how to configure Hudson to display the reports. hudson-continous-integration-for-google



来源:https://stackoverflow.com/questions/1059115/cobertura-graph-in-hudson

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!