cobertura

How to instrument a multiproject Maven 2 with Cobertura?

My Maven 2 project consists of several sub-modules. It s structured containing and EJB, WAR and Jar sub modules.. Now i want to instrument the packaged EAR that contains all submodules as mentioned. Example: Interface Maven Project consists of several modules: - InterfacePOM --> parent pom - InterfaceEAR --> EAR module which does not a...

How to change the default output from a Maven 2 / Cobertura instrument goal?

Hi there, when i instrument my classes using Maven 2 using the command mvn cobertura:instrument The output (the instrumented classes) are put in \target\generated-classes. Is there a way to change the output location to \target\classes? I checked the instrumentation tasks of the cobertura-maven plugin but this does not give me a ...

Display cobertura coverage report on the hudson project page under test result

Hi Friends In projects I am able to generate the Cobertura Code Coverage Report. But it is available not from the Hudson Project page - which is required. Currently it is available from the 'Coverage Report' link under the build. I have to display the code coverage report just below the test report on the hudson project page. Can you ...

Maven Cobertura OutOfMemoryError

I am using Maven site:run to generate a cobertura code coverage... The following is my pom.xml configuration for cobertura: <reporting> ... <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> <version>2.3</version> </plugin> ...

Display Cobertura Coverage Report on the project page along with "Test Result Trend" report.

Hi Friends Say you enter the hundon dashboard page and select the job i.e. the project. In that project page I need to display cobertura code coverage report other than "Test Result Trend" reprot. Please let me know the configuration for this. Thanks in advance. ...

Zero code coverage with cobertura 1.9.2 but tests are working

I run the code coverage target: <junit fork="yes" dir="${basedir}" failureProperty="test.failed"> <!-- Note the classpath order: instrumented classes are before the original (uninstrumented) classes. This is important. --> <classpath path="${instrumented.di...

Running integration tests with Cobertura Maven plugin

I am having trouble getting the Cobertura plugin to run integration tests in Maven. The closest answer to this question I have found is http://jira.codehaus.org/browse/MCOBERTURA-86. However, the issue remains an open bug. I tried the configuration suggested by Stevo on 03/Apr/09, it didn't work. My POM <reporting> <plugins> ...

How to aggregate code coverage report in Hudson?

Hi, I have project build with hudson CBS. and i am using cobertura for test coverage. Reports are generated and i am happy about it. but i cannot find the delta of coverage %. for e.g. check-in #1 - code coverage is 90% check-in #2 - code coverage is 75% i.e down by 15%. can i achieve this in hudson cobertura plug-in? is there an...

Hudson "Source code is unavailable."

I'm using Hudson to continuously build a Python project. Unit tests and code coverage work great, but this message appears when drilling into the Cobertura Coverage Report for my files that are not unit tests: Source code is unavailable.Some possible reasons are: * This is not the most recent build (to save on disk space, this plugin ...

Excluding some classes from the cobertura report doesn't work

I tried to remove some classes from the cobertura report as <target name="voldemort-instrument" description="Instrument Voldemort Classes"> <mkdir dir="${voldemort.instrumented.dir}" /> <cobertura-instrument todir="${voldemort.instrumented.dir}" datafile="${cobertura.instrument.file}"> <classpath refid="tools...

Excluding some classes from the cobertura report doesn't work

I tried to exclude some classes from cobertura as specified in this site <cobertura-instrument todir="${voldemort.instrumented.dir}" datafile="${cobertura.instrument.file}"> <classpath refid="tools-classpath" /> <ignore regex=".*\.xsd" /> <fileset dir="${voldemort.dist.dir}/classes"> ...

emma not generating reports but cobertura does ?

Hi all, basic reason to put the comparison question between these 2 is I am able to generate the reports in site directory(for cobertura) after putting the following plug in information in build section of my pom. But same would not happening with emma. I checked documentation in codehause mojo its almost same for both. My configuration...

maven-cobertura-plugion does not show the sources.

When I generate a Cobertura report by running "mvn cobertura:cobertura" (or "mvn site") then a report is generated which shows the test coverage for my classes but when I click on a class then the message "Unable to locate de/ailis/foo/Bar.java. Have you specified the source directory?" is displayed. How can I fix this? I configured the ...

Java : Which Code Coverage tool to use ?

Hi all, Here is what I want to do: 1) A running application has been instrumented. The byte code is clean - means that the tracing info should be added on the byte code level. 2) The running application might run for days or weeks. I want to have a trace file once per day. 3) If the tracing period is over I want to merge all trace fi...

How to avoid double compilation and testing with cobertura:check?

I'm using maven-cobertura-plugin in order to calculate code coverage in my project. As I understand, this plugin starts a new/forked build cycle in order to compile and test the code base. When it's done the plugin calculates code coverage. As I understand, this is the only approach the plugin can use, and it's fine for me. The problem ...

Configure cobertura to ignore certain blocks of code

Is it possible using Cobertura to tell it to ignore certain bits of code that are identified by start and end comments? For example, public class Foo { public void static doSomething() { ... // Cobertura-Ignore-Start ... // Cobertura-Ignore-End } would result in Cobertura not including the code i...

Exclude specific methods from code coverage from cobertura?

I was trying to ignore all the toString() methods from instrumentation using following configuration. This wasn't really working? This is using cobertura as maven plugin. This was based on a previous answer http://stackoverflow.com/questions/951569/exclude-code-from-code-coverage-with-cobertura. <instrumentation> <ignores> <...

Measure Code Coverage only on New Code

We are looking for a creative way to measure code coverage on new code separate from existing code. We have a large legacy project and want to start getting 90+% coverage on any new functionality. We would like a way to easily view a report that filters out any older code to make sure the new functionality is meeting our goal. Obvio...

Cobertura showing 0% coverage

Hi folks, I'm using Cobertura 1.9.3 with NetBeans 6.8, Ant 1.7.1 and JDK 1.6.0_21 running with -WAR, and EJB, JUnit 4 tests. When I change the line "pathelement location="${build.classes.dir}" /" to "pathelement location="${build.test.classes.dir}" /", there is some coverage (albeit in the wrong classes, it shouldn't be in the testclas...

cobertura integration tests

Integration tests fail for cobertura with ant where in the Integration tests pass just for the ant. ...