Tagged Questions
1
vote
0answers
32 views
Excluding some classes from cobertura report
I am using a gradle-cobertura plugin for generating test coverage report which can be found here. The plugin is working absolutely fine. Now I am trying to exclude some of the classes from the ...
0
votes
0answers
14 views
gcovr doesn't recognise conditionals from Xcode 4.5
I have an Xcode 4.5 project for iOS 6.0 and I am trying to set up test coverage for Jenkins with Cobertura.
I have set up a test target and have configured both the main target and the test target ...
0
votes
2answers
40 views
Cobertura not analysing the project in grails
I'm using grails 1.3.7.I installed code-coverage plugin.And placed the cobertura 1.9.4.jar and asm2.2.3.jar in project lib folder in STS workspace.Running using grails test-app -coverage ...
0
votes
1answer
69 views
Spring ApplicationContext loading in cobertura-maven-plugin tests
I'm using cobertura maven plugin to produce report about test code coverage of my spring-based application. My unit tests configures as:
@RunWith(SpringJUnit4ClassRunner.class)
...
-1
votes
1answer
31 views
Sonar Component view and cobertura code coverage report view differ
When I look at my Sonar Components view I see a lot of classes with code coverage. However, when I click the unit test code coverage percentile to retrieve the view of packages from which the ...
0
votes
0answers
49 views
Any coverage tool allows to ignore getters , setter, equals and hashcode?
We are currently using Cobertura but i can't figure out a way to exclude those methods. I tried Emma and clover as well which i couldn't find any way to do as well.
Please , spare your "You should ...
0
votes
2answers
84 views
Why code coverage is different when measured by eCobertura and EclEmma?
When using eCobertura and EclEmma resp. I found the code coverage come out as different in each case for the same project.
Interested to know why?
Emma stat
eCobertura stat
1
vote
0answers
83 views
Can Cobertura instrument custom java annotations?
I have a simple annotation like this:
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface FragmentConfiguration {
public static enum ViewMode {
WithActionBar, ...
2
votes
3answers
285 views
What are my alternatives for test code coverage on Android?
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 ...
0
votes
0answers
55 views
Logging coverage using Cobertura Plugin for Grails app
We are using cobertura for code coverage on our Grails app and it generates report as expected. I want the plugin to ignore logger calls in the code. I want to pretty much do was mentioned in this ...
2
votes
2answers
96 views
How can I restrict access to Cobertura coverage report in Jenkins
I'm using Jenkins for CI in a multi-user Linux environment, with Cobertura for tracking code coverage. CVS is used for version control. With each "cvs commit" a build is triggered. A build includes ...
2
votes
1answer
680 views
Code coverage for Android (calabash-android BDD)
I'm testing my android application using calabash-android which provides it's own "test project", with a script that renames it's package to reflect the app under test, and then uses an ...
3
votes
1answer
115 views
Building grails project successfully only if coverage check passes
I am working on a grails application. We use cobertura to generate the code coverage reports. Now I want to modify the grails project such that the build should fail if the code coverage is less than ...
2
votes
1answer
214 views
Code coverage for Java: dead or paid?
I'm looking for an answer on code coverage tools. I know variations on this question have been asked before:
Code coverage tools in Java
What is your favourite code coverage tool(s)? (Free and ...
0
votes
1answer
195 views
Cobertura code coverage for Freemarker auto-generated code
I am trying to set up Cobertura code coverage on a project which includes auto-generated code, created from templates using Freemarker (explicitly, using the fmpp maven plugin).
I then have unit ...
1
vote
0answers
94 views
Is there a tool for converting the Emma XML reports to Cobertura XML format?
I am using a code coverage tool that can only generate Emma XML report, while what I need is Cobertura or gcov format. Does there already exist some tool for doing the conversion? If not, I'm afraid I ...
1
vote
1answer
248 views
Jenkins Cobertura plugin “Source code is unavailable”
I'm using Jenkins ver. 1.466 with Jenkins Cobertura Plugin ver. 1.5. I generated coverage report for Django project. All charts looks good, but when I want to see source code I have warning message:
...
1
vote
2answers
67 views
WSServletContextLi stener contextDestroyed while deploying war using cobertura
Hi I am new to cobertura , i created a war using cobertura while deploying this war in tomcat i am getting below error message
INFO: Initializing Mojarra 2.0.4 (FCS b09) for context '/victor'
Apr 02, ...
2
votes
1answer
82 views
Cobertura Check & Validation
I see that Cobertura has a <cobertura:check> task that can be used to enforce coverage at build-time (if coverage metrics dip below a certain value, the build fails). The website shows examples ...
2
votes
2answers
734 views
Cobertura Instrumentation
I am trying to get Cobertura working with my Ant build, and specifically just want it to give me a coverage report on my unit tests. I'm using the following directory structure:
src/main/java --> ...
1
vote
1answer
198 views
Configuring Cobertura with Ant
I'm trying to get Cobertura working for my project's Ant build, and all I have to work with are the documentation/FAQs and a sample build.xml that uses cobertura, but apparently never worked (ha!).
...
7
votes
1answer
367 views
Is there still no solution for ignoring setter/getter (other trivial methods) with the cobertura-maven-plugin?
Did someone find a good solution to ignore trivial methods?
Using some automated testing like Unitils is not really an option, since the code-coverage should not go up if only getters/setters are ...
0
votes
1answer
130 views
cobertura report
I am making a jar file of project1 and placing the jar file in project2.
For project2 I'm able to create the coberatura report.
My question is how do I get the cobertura report for project1(in ...
2
votes
2answers
70 views
Can I get a unit test coverage report specificly for a user story?
We are using cobertura to show our unit test coverage, we have only just started using it (Im new to running this team) and our current unit test coverage is very low, rather than just go in and find ...
1
vote
1answer
80 views
Cobertura still tracks already deleted files
I've deleted a subproject from my Maven parent project.
Now when I run cobertura:cobertura on the parent project, the classes that are already gone are still listed in the coverage report on our ...
2
votes
1answer
409 views
cobertura report without stopping tomcat
i followed the steps that are given for cobertura report and i generated report with following steps given in the URL Cobertura on Tomcat
but now my problem is to generate cobertura report without ...
1
vote
0answers
214 views
When should I merge my Cobertura ser files rather than reusing and adding to one?
I am running several processes for code coverage. For example, unit tests and manual tests, etc. I want an overview of coverage for all the ways in which I exercised the code.
Why not just specify ...
4
votes
2answers
318 views
Code coverage / branch coverage recommended values
I'm using Cobertura to calculate code/branch coverage for a Java project with JUnit test cases. I know 100% coverage does not tell how good the code is, but at the moment it's 6%. Branch coverage is ...
0
votes
0answers
344 views
Cobertura code coverage issue
We are using sonar in our project. Sonar by default uses cobertura for determining code coverage. My application is divided into multiple projects and each of them having their own pom.xml files. So ...
4
votes
2answers
848 views
Cobertura and Jetty
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 ...
2
votes
2answers
105 views
Code coverage going down significantly after hibernate upgrade - getters and setters not covered - any ideas?
We have recently upgraded our code base from a 2005 version to the latest version of hibernate.
As a result of that, we're seeing significantly reduced code coverage in a number of our packages. ...
0
votes
2answers
202 views
Faulty Line coverage(100%) in cobertura via ant?
I'm using cobertura, but it is giving me 100% line coverage. It is showing only those lines of code which are executed?
27
votes
6answers
8k views
Testng, Emma, Cobertura, coverage and JDK 7 result in ClassFormatError and VerifyError
I have switched to the newest JDK 7 and I am having problems with running testng unit test on byte code that is fiddled by emma coverage tool. None of my test cases are run correctly and for most of ...
40
votes
4answers
3k views
Clearing coverage highlighting in Eclipse
After running coverage reports in Eclipse (using cobertura or an EMMA plugin), my source code files get highlighted in green, red and yellow depending on which lines of code were covered by tests.
...
1
vote
1answer
2k views
How to view HTML coverage report using Cobertura Maven plugin?
I want to generate and view a coverage report for a Java-Maven project.
I've added the following to pom.xml:
<reporting>
<plugins>
<plugin>
...
1
vote
3answers
230 views
Cobertura, suppress lines never should come
I am using cobertura first time. Everything works fine but what I wonder is,
there are lines in my code, which should never be called like:
try {
em.persist();
}catch(Exception) {
...
1
vote
1answer
186 views
Grails, Hudson, and Cobertura, which tests are covering my code?
I just started working on an existing grails project where there is a lot of code written and not much is covered by tests. The project is using Hudson with the Cobertura plugin which is nice. As I'm ...
0
votes
1answer
651 views
how to use cobertura code coverage tool with jar file
I'm using cobertura to find out code coverage of my test suite, which tests a java based solution bundled through a jar file, cobertura cmd line reference
I have done the instrumentation part and ...
4
votes
2answers
1k views
Cobertura on Tomcat
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 ...
8
votes
4answers
3k views
Ignoring report generation for specific classes in cobertura maven plugin
Ive been using cobertura plugin for report generation and instrumentation, (with surefire).
Here is the issue I am facing.
I am unable to make the plugin ignore report generation for specific classes ...
2
votes
1answer
174 views
Side effects of cobertura
After some efforts I finally get cobertura running correctly for my web application on a tomcat server. Everything seems fine until I committed it to the svn and hudson finished(failed) his work. ...
0
votes
1answer
493 views
Cobertura test coverage does not cover tests which extend class under test
I have a class which I need to test eg. MyClass.java
I am using Junit4 so in order to test the protected methods as well in MyClass.java I create a test class MyClassTest.java (which is in a ...
4
votes
2answers
5k views
cobertura in eclipse
I just installed ecobertura plugin, but it looks like not a very user-friendly tool from within eclipse. is there any good plugin for cobertura in eclipse or article to describe how to use ecobertura?
...
4
votes
4answers
836 views
Cobertura coverage and the assert keyword
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 ...
1
vote
1answer
325 views
Is there a way to transform lcov's coverage info file to be used with one of Hudson's coverage plug-ins?
I am generating test code coverage using lcov (a graphical gcov tool extension). The code is compiled using Hudson and a Publish HTML plug-in is used to show results report per build.
I lack a trend ...
1
vote
2answers
2k views
How to output coverage XML with nosetests?
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 ...
0
votes
1answer
148 views
Where can I find a single summary coverage number in Cobertura?
I run Cobertura on my codebase and get coverage numbers by the class, line, and branch.
Besides this, I am looking for a single summary number which tells me the coverage for my whole codebase. ...
1
vote
1answer
272 views
Does the coverage plugin (Cobertura under the hood) report on Spock specifications?
With grails test-app unit:spock -coverage I ran the test explained at
"Why is this method returning null even though the underlying controller is mocked using Spocks' Mock()?"
Now the coverage ...
1
vote
3answers
703 views
Grails cobertura plugin is doing code coverage on BuildConfig.groovy
Grails coberatura plugin is doing code coverage on BuildConfig.groovy. I have tried all these configurations on BuildConfiguration to exclude BuildConfiguration from code coverage have tried all ...
2
votes
3answers
4k views
Cobertura with Ant Script : xml/html coverage report always show 0% coverage everywhere
I tried to get Cobertura running inside my ant script. All is successfull (source code building, junit tests, cobertura reports (xml / html); but in html reports, the code coverage is always at 0% ...
...