cobertura graph in hudson - hudson

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.

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.

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

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

Related

Cmd execution for unit test report and code coverage report

We have junit based tests (maven project) and using EclEmma for code coverage. Able to get jUnit execution report and code coverage report from Eclipse. But I want to exectue unit tests from commandline and would like to get unit tests report and code coverage report. Code coverage report should show uncovered lines as well.
I was going through website (http://www.eclemma.org) and unable to find expected info.
Is there any commands available with or W/O tools?
EclEmma is based on JaCoCo. Among other integrations there are Maven plugin and Ant tasks for it. As you can see - all JaCoCo documentation can be found on the site of EclEmma that you mentioned.

Hudson post build tasks

I have an issue in hudson post build tasks,
I am using two plugin FTP Upload(which uploads artifacts to FTP server) and Post Build Tasks(which execute my external batch file).
Now my issue is that Post Build Tasks executes before FTP Upload, that should not happened, I want to execute batch file after completion of FTP upload. See my attached screenshot for reference. Any help will be appreciated.
Can't you just use FTP to upload the file in your batch file? Then you have full control of the ordering?
Later versions of Jenkins (after April 2012) allow you to reorder post-build actions as you wish.
There is also the Flexible Publish Plugin that allows ordering the post-build actions through conditions.
Is there a reason you are sticking with Hudson?
Edit
From official sources:
JIRA issues indicating this problem
https://issues.jenkins-ci.org/browse/JENKINS-7408
https://issues.jenkins-ci.org/browse/JENKINS-9381
Resolution by Kohsuke Kawaguchi (creator of Hudson/Jenkins). Unfortunately, the resolution is in Jenkins.
https://groups.google.com/forum/?fromgroups#!topic/jenkinsci-dev/UQLvxQclyb4
So to answer your question directly: it is impossible in Hudson. Only thing you could try is workarounds with multiple jobs linked up. Let me know if this is something you would consider.

Prevent Junit output to be printed in Gradle test reports

Is there a way to prevent the
<system-out><![CDATA ... ]]></system-out> to be included in the junit reports when using gradle java plugin and the test task ?
I run a lot of tests with heavy outputs, and generating the HTML report results in a Java Heap space.
The report generation is done by ant with the junit report task for the moment.
I'm integrating gradle in a heavy ant script, and it will take time to move everything to gradle.
During the transition phase, I would like to keep the junit report generation provided by Ant.
To my knowledge, there is no way to prevent system out from showing up in Gradle's JUnit reports. However, if reporting is done in Ant, you can disable Gradle's JUnit reports.

What is the best stable hudson integration plugin for IntelliJ?

I observed that there are 3 plugins that are aiming to provide hudson integration in IntelliJ IDEA.
What is the better one and why?
Hudson Build Monitor seems like the only reliable option where IDEA plugins are concerned. The other available plugins seem to be buggy and perhaps a little over-engineered.
At a basic level HBM works great though I'd prefer it were more project-specific as opposed to monitoring a view or the entire list of Hudson jobs.
I'd like to see a more abstracted build monitor option. Perhaps a Maven plugin that is configured with a CI server facade and references to all the builds for a specific pom file. Then a generic integration within IDEA to poll that facade on a timer to display the status within your project view. This same abstraction could be integrated into the Maven reporting subsystem to document the build history of a specific release through the development cycle.
As usual, plenty of IDEAS and not enough TIME :-)

How to use lcov test coverage tool with Hudson continuous integration?

In my environment developers use lcov from command line when working with source code's module tests.
I would like to know if there is a way to easily add reports from lcov to Hudson's builds? I would ease and automate the whole procedure of gathering test source code coverage.
If you are looking to publish the generated HTML reports along with your job/builds, have a look at the htmlpublisher plugin: http://wiki.hudson-ci.org/display/HUDSON/HTML+Publisher+Plugin
This allows you to specify multiple html directories and index files to be made accessible from the job or build page.
Have a look at the xUnit Plugin. I found the info in this thread. It has more information for using Hudson to build cpp projects.