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
19
votes
2 answers

What are the differences between the three methods of code coverage analysis?

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 Cobertura) On-the-fly byte code instrumentation(Used by…
Geek
  • 26,489
  • 43
  • 149
  • 227
12
votes
1 answer

Performing code coverage using Clover on a Play! Framework Application using Ant

I'm writing an Ant script to do some additional checks on my Play! Framework Application. Currently, I am executing my tests from my Ant script by simply making an exec call to "play auto-test".
digiarnie
  • 22,305
  • 31
  • 78
  • 126
7
votes
2 answers

PHPUnit is not producing its clover coverage report

Although phpunit supports the --coverage-clover [file] argument, it seems to be doing nothing. I have Jenkins running on this server with the clover coverage plugin for php. Here's my output: > phpunit --coverage-clover…
Sean
  • 2,278
  • 1
  • 24
  • 45
7
votes
2 answers

Maven runs unit tests twice with clover plugin

I have this plugin code in my pom.xml. If I remove this plugin then Maven won't run unit tests twice. I just wanted to know which part of this plugin makes the unit tests run twice. com.atlassian.maven.plugins
codereviewanskquestions
  • 13,460
  • 29
  • 98
  • 167
6
votes
2 answers

phpunit clover from some particular directories, not full clover. Is it possible?

Why do I need this? I'm running the tests on symfony project (and using Zend fw) and phpunit generates clover for all affected files. But I don't want see coverage for symfony and Zend libs (and all another third party ones). I wish see coverage for…
smileua
  • 61
  • 1
  • 2
6
votes
2 answers

clover: how does it work?

I am evaluating clover currently and wonder how to use it best. First I'd like to understand how it works conceptually. 1) What does instrumentation mean? Are the test-calls attached to implementation's statements? 2) How is this done? Are the…
Bastl
  • 2,926
  • 5
  • 27
  • 48
5
votes
2 answers

How can I exclude a methods (hashcode and equals) from the clover coverage report?

I would like to exclude hashCode and equals from clover report. Some configuration example would be nice.
Maciej Miklas
  • 3,305
  • 4
  • 27
  • 52
5
votes
5 answers

cobertura vs clover

We are thinking about utilizing one of these tools in our development procedure. Our environment extensively uses mvn and eclipse. Which one in your opinion is the best utility for checking test coverage? I realize that it may depend on the…
Marcin Michalski
  • 1,266
  • 13
  • 17
5
votes
3 answers

Caused by: java.lang.NoClassDefFoundError: com_atlassian_clover/TestNameSniffer

Getting below error on invoking TestNG unit test cases with clover profile enabled. Did not change any clover version. Not getting any clue why its happening. Here is my libs details - clover-4.0.3, testng - 6.0.1, maven 3 Caused by:…
mds404
  • 371
  • 4
  • 9
5
votes
1 answer

Changing location of Clover instrumented classes

I'm using Clover 2.5 and I've got a target that will package up the binary files. However, at the moment, it seems that the Clover instrumented classes are being generated in the same output directory as the un-instrumented classes that I wish to…
digiarnie
  • 22,305
  • 31
  • 78
  • 126
5
votes
1 answer

How can one generate Clover-compatible (Bamboo) xml which includes coverage data for python unnittest?

NoseXUnit used to be able to generate Clover-compatible xml files, but it is no longer maintained, and does not work with recent versions of Nose. How can one generate Clover-compatible (Bamboo) xml which includes coverage data nowadays?
Tarnay Kálmán
  • 6,907
  • 5
  • 46
  • 57
5
votes
3 answers

phpunit merge two or more clover.xml reports

I have several clover.xml reports of different extensions of a projects. I want to combine them into one clover.xml and then create it into a clover html. But i see no way with the phpunit classes PHP_CodeCoverage, PHP_CodeCoverage_Report_HTML,…
user1791139
  • 606
  • 1
  • 11
  • 27
5
votes
1 answer

Sonar not picking up clover test results created by running maven in jenkins

I've been working on this all day and haven't been able to find a solution, so thought i'd turn to the stackoverflow community. I have a server setup with Jenkins (version 1.454). It's configured to perform the build with Maven (version 3.0.4). The…
the ox
  • 197
  • 1
  • 13
4
votes
0 answers

gradle-clover-plugin to get code coverage from separate module

I was tasked with splitting up a spring boot application to have multiple modules to look something like…
nLee
  • 1,320
  • 2
  • 10
  • 21
4
votes
0 answers

Phpunit show uncovered lines of code via console

I am using clover to compute my code-coverage with PHPUnit and I am looking for a way to display the uncovered lines of code via console (could be a command, bash script or PHP script). I have the HTML report, but, I can't open it as the tests run…
Mathieu Nls
  • 2,285
  • 2
  • 17
  • 32
1
2 3
14 15