Questions tagged [clover]

Clover is a Java code coverage & test optimization application.

Clover is a Java code coverage and test optimization application developed by Atlassian. It is freely available to Non-profits and Open Source projects, but is also available for Commercial purchase.

Features of Clover include:

  • Test Optimization
  • Distributed Test Coverage Aggregation
  • Latest Run Coverage Reports which include:
    • Project Risks
    • Per-test Coverage
    • Project, Package, Class and Method-level coverage
  • Historical Coverage Reports
  • Test Results
    • Pass/Fail/Error per Test Class and Test
    • Coverage Contribution per Test
  • JIRA Dashboard using Clover Gadget
  • Java API Extensibility
213 questions
4
votes
3 answers

How to specify Clover CoverageTarget Metrics in Jenkins Pipeline?

I'm using Clover plugin (https://wiki.jenkins-ci.org/display/JENKINS/Clover+Plugin) to publish my coverage metrics. Also, I had configured "coverage target metrics" as shown herE: Now that I've started to use Jenkins 2.0 Pipelines plugin, How can I…
Ramya AT
  • 159
  • 3
  • 15
4
votes
1 answer

How can I designate lines of code for Clover to ignore?

I would like to tell Clover to ignore particular lines of my Java code. Is there any way to do so from within the code? Something like //// IGNORE vvvvvvv System.out.println("Ignore this line and considered it covered"); //// IGNORE ^^^^^^^ If not,…
Victor Grazi
  • 15,563
  • 14
  • 61
  • 94
4
votes
1 answer

PHPUnit - one coverage report from multiple project folders?

I have a project that is structured like so: project ├── app │   ├── phpunit.xml │   ├── src │   └── tests │   └── unit └── modules ├── module1 │   ├── phpunit.xml │   ├── src │   └── tests │   └── unit └── module2 …
vimfluencer
  • 3,106
  • 3
  • 17
  • 25
4
votes
4 answers

Java : Which Code Coverage tool to use?

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…
user400365
  • 41
  • 1
4
votes
1 answer

Clover versus Sonar

I've been vetting Static Analysis tools and I've recently come across both Atlassian Clover and SonarQube. The two products seem remarkably similar and virtually identical from a server perspective, yet I can't find a good comparison of them…
Dubius
  • 428
  • 1
  • 5
  • 11
4
votes
1 answer

Jenkins Clover REST API

Is there an API for the Clover plugin, to be able to retrieve the coverage stats in JSON or something similar? Can Jenkins Api be used for getting clover coverage report. Looks like it is possible with Cobertura but could not find anything for…
Craig
  • 4,268
  • 4
  • 36
  • 53
4
votes
3 answers

OutOfMemoryError creating clover-snapshot in Ant running from QuickBuild

I have a QuickBuild server (5.0.14). This is running a build step using ant. The Ant target looks like this: We are using Clover…
WW.
  • 23,793
  • 13
  • 94
  • 121
4
votes
1 answer

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…
Ryan Nelson
  • 4,466
  • 5
  • 29
  • 45
3
votes
1 answer

How can I provide feedback to my team about changes included in a build and their impact on risk?

Is this something you do already or do you know of a good tool? GOAL: Help team understand how recent source changes impact risk so they know where to focus testing efforts. Provide data over time and feed it back into planning and scoping phases…
Peter Kahn
  • 12,364
  • 20
  • 77
  • 135
3
votes
1 answer

How to exclude code from the Clover coverage report?

Is there any way to hide classes or methods from being included in the Clover code coverage report? We have some proof of concept code along side production quality code in the same directories. This concept code is being included in the code…
TERACytE
  • 7,553
  • 13
  • 75
  • 111
3
votes
1 answer

Clover code coverage reporting showing zero in mvn sonar:sonar

When I run sonar my code coverage always coming 0. I am using clover. Below entry in pom.xml file 11 1.18.20
3
votes
1 answer

PHPUnit HTML and Clover coverage reports differ due to codeCoverageIgnore

I'm using PHPUnit 3.5.14 and have a suite of tests which covers 100% of my PHP application excluding certain portions with // @codeCoverageIgnore[Start|End]. The HTML coverage report shows 100% coverage. But when I generate a Clover XML coverage…
Dan Copeland
  • 571
  • 5
  • 8
3
votes
0 answers

Excluding a Module from clover code coverage

I have a maven project for which I am trying to find the code coverage using clover plugin. I want to exclude coverage for a specific module. The module I want to exclude basically contains Util classes for tests and I don't want them to be part of…
Kunal gupta
  • 481
  • 2
  • 7
  • 19
3
votes
1 answer

clover not picking up certain objects

I noticed clover is not picking up results for 1 particular class that I have. Its a domain object that has 3 overloaded constructors. It shows up in the clover reports as having 0% coverage. I even wrote a dummy test case to test all the…
Damien
  • 4,081
  • 12
  • 75
  • 126
3
votes
1 answer

PHPUnit - PHP_Token_Stream error on clover-coverage

I am using PHPUnit 3.5.10, and having a problem trying to generate xml reports for clover-coverage. Exporting with coverage-html works fine. Also, if I exclude enough files from the coverage report it will generate the clover.xml file. However, when…
jonmc12
  • 562
  • 8
  • 11
1
2
3
14 15