cobertura Questions

3

Solved

What is the difference between line and branch coverage in Cobertura Maven?
Introspect asked 22/11, 2011 at 15:24

2

Solved

This sonar page basically lists the various methods employed by different code coverage analysis tools: Source code instrumentation(Used by Clover) Offline byte code instrumentation(Used by Cober...
Caiaphas asked 6/3, 2013 at 19:4

2

Solved

I am working with some legacy code that has some System.out.print commands in itself. My eCobertura plugin shows this lines red, so I want to unit test them. Here in stackoverflow I found a way to...
Englishism asked 2/3, 2013 at 13:47

1

I have Cobertura instrumented jar running in JVM. When I press Ctrl-C in Windows console, where application runs, JVM ends and Cobertura results are successfully flushed to cobertura.ser file. But ...
Oscillation asked 19/2, 2013 at 8:27

2

I have a java class with some static fields: private static final PDMapCacheDAO REST_CACHE_DAO = new PDMapCacheDAOImpl( Constants.REST_CACHE_NAME ); private static final PDMapCacheDAO HOLIDAYS_...
Tomokotomorrow asked 1/2, 2013 at 9:7

3

Solved

I know Android's Ant tooling comes with built-in Emma code coverage, but Emma's reports look more and more dated and cannot be easily integrated into other coverage reports or even Sonar, basically...
Rattat asked 20/9, 2012 at 6:28

1

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 previo...
Take asked 23/8, 2010 at 5:2

6

Solved

I tried to get Cobertura running inside my ant script, but I'm stuck right at the beginning. When I try to insert the cobertura taskdef I'm missing the Log4J libraries. Ant properties & class...
Expunge asked 21/11, 2009 at 7:57

2

Solved

I got one simple class with test case for it and everything works fine in eclipse, but when I run maven build (with this goals : install cobertura:cobertura checkstyle:checkstyle-aggregate) I'm see...
Goodnight asked 3/6, 2012 at 9:14

3

my setup is: Jenkins 1.448 Sonar 2.13 Jenkins Sonar Plugin 1.72 a MySql database for Sonar I have the following project: Eclipse Plugin Project using Maven multiple modules (parent maven proj...
Shaker asked 20/1, 2012 at 16:1

5

Solved

I have a multi-module Maven setup with Java code. My unit tests, in one of the modules, exercise code in multiple modules. Naturally, the modules have inter-dependencies, and code in all relevant ...
Nucleon asked 17/1, 2011 at 21:2

1

In order to fine-tune which tests are run at which times and in which environments, we have several executions set up for the maven-surefire-plugin. We set the default configuration to skip all tes...
Dyna asked 9/12, 2011 at 17:21

2

Solved

I'm trying to integrate Cobertura into our test environment to be able to capture code coverage information. The tests are run from ant scripts using ANT junit tasks, and there are more than 50 ant...
Entreaty asked 16/11, 2011 at 20:43

2

I'm trying to get coverage report when running my webapp on Jetty, using cobertura. We already have cobertura running for unit-tests by using the surefire plugin. We also have the failsafe plugin c...
Unpretentious asked 7/11, 2011 at 9:51

2

Solved

I can invoke mvn cobertura:cobertura to instrument, run unit tests (using surefire), and generate reports. I can invoke mvn verify to run unit tests and integration tests (using the failsafe Maven...
Oswin asked 10/11, 2011 at 17:10

1

hope someone can help. our project is an Eclipse plug-in project we have a Jenkins server our project uses Maven and Tycho (for plug-in projects) for build management we installed a Sonar server ...
Lozier asked 25/10, 2011 at 13:52

1

Solved

I recently integrated Cobertura into my Ant build scripts and I am wondering if I did it correctly because it has significantly slowed down the time it takes to run the unit tests. Here is a sampl...
Thigh asked 26/9, 2011 at 17:33

4

My line coverage for unit tests measured by Cobertura is suffering, because I have assert statements which are not covered in tests. Should I be testing assertions, and is there any way to get Cobe...
Forepeak asked 14/2, 2011 at 17:50

2

Solved

In Cobertura, I can not get it to report that the conditional path of an assert statement was taken. Is this a known limitation? I have a JUnit test that expects and AssertionError to be thrown, a...
Schacker asked 24/2, 2011 at 23:35

2

I run the code coverage target: <junit fork="yes" dir="${basedir}" failureProperty="test.failed"> <!-- Note the classpath order: instrumented classes are before the original (uninstrum...
Foxtrot asked 27/1, 2010 at 17:16

2

Solved

I'm trying to apply code coverage using Cobertura. The app is deployed in Tomcat 5, but when I instrument the .class files, the app stops working. This are my steps: Compile the app (This run in...
Winterwinterbottom asked 14/3, 2011 at 22:12

2

Solved

I'm trying to output the coverage XML of my nosetests so they show up on Hudson. The line I'm executing is: nosetests --with-gae -v --all-modules --with-xunit --with-coverage I see the coverage ...
Corr asked 21/1, 2011 at 3:34

3

Solved

I have a maven2 project in hudson and when the cobertura reporting plugin runs, it causes the unit tests to show that they have run twice. I don't mind them running multiple times, but the trend gr...
Christianechristiania asked 8/7, 2009 at 14:25

5

Solved

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...

6

Solved

I've got some projects that are already doing site generation via maven, and I want to integrate cobertura reports in them, but no maven goal I seem to run will generate a local preview for me to l...
Stipe asked 27/2, 2009 at 21:25

© 2022 - 2024 — McMap. All rights reserved.