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
3
votes
0 answers

Clover failing with "No Clover database found, skipping report generation"

I'm trying to add Clover to my maven (groovy) project in order to get some code coverage results. However it fails to generate the code coverage report. The report is just empty. My src files are located in src/main/groovy and my tests are located…
user1104939
  • 1,395
  • 2
  • 13
  • 25
3
votes
1 answer

Clover 0% Coverage with multiple source directories + build-helper-maven-plugin

Our java application has multiple source folders, and use build-helper-maven-plugin to read source files from all the folders, But here when I run clover on the application it generates the clover.xml with coveredelements = 0 coveredconditionals = 0…
Nishanth
  • 317
  • 4
  • 16
3
votes
0 answers

Get code coverage report(junit and instumentation testcases) for eclipse android project

I have android project which has some Junit test-cases and some instrumentation test-cases. I am able to generate the code coverage for the Junit test-cases with help of Colver or EclEmma tool. Now i need to create the code coverage report for…
3
votes
0 answers

SonarQube to take the coverage from Clover.xml

I have generated a clover.xml report for my service. I want to integrate that with my SonarQube report which is not showing the coverage at all. I am not sure what exact plugin to add to my pom.xml so sonar can read it. Here is part of my…
Maram Mutaieb
  • 51
  • 1
  • 2
3
votes
2 answers

Turning off clover coverage - not working

I know that I am gonna have to use // CLOVER: OFF to turn off clover test coverage. I have read https://confluence.atlassian.com/display/CLOVER/Using+Source+Directives I have added that line before my class declaration like: // CLOVER: OFF public…
Anil Pediredla
  • 704
  • 2
  • 8
  • 20
3
votes
0 answers

Restrict Jacoco coverage calculcation on methods with cyclomatic complexity > 2

Is there a way to tell Jacoco not to take into account the methods with very low cyclomatic complexity(CyC)(CyC<2) while calculating the coverage percentage? NB:I think this is doable in Atlassian-clover either by filtering out the method with CyC…
3
votes
0 answers

Grails project with several inline plugins. How to run tests on the whole app at once?

I have a project with several inline plugin dependencies. Is it possible to run tests that cover the whole app (including the plugins) from the project? I am looking for a solution that doesn't involve publishing the plugins to a repository. The end…
Alex Chirițescu
  • 688
  • 4
  • 13
3
votes
1 answer

How to exclude getter/setter methods from test coverage in sonar clover plugin?

We use Jenkins CI with Sonar for test coverage. We use Atlassian Clover as coverage tool. So the question: how to exclude getter/setter methods from test coverage in order to increase test coverage percent without writing useless test cases? I…
Igor Golovan
  • 91
  • 2
  • 11
3
votes
2 answers

Clover+Maven+Eclipse

I am using eclipse + maven2 to build my applications. I need to start working with clover. My question is therefore: from your experience, what is the best way to combine these 3. I mean, I know there is a clover plugin for eclipse, there is also a…
Avi Y
  • 2,456
  • 4
  • 29
  • 35
3
votes
2 answers

CloverETL / Zest / GEF

Which component was used to create the CLOVER ETL GUI? I have some possibilities: Zest Draw2D GEF I need to create a tool that a user can create a graph. Thanks
p.magalhaes
  • 7,595
  • 10
  • 53
  • 108
3
votes
1 answer

Clover PHPUnit coverage report is including coverage for unwanted file

I have just set up CloverPHP into my Jenkins job. I am using PHPUnit to generate the clover report and it seems to all be working apart from the coverage report which is showing the file /usr/share/php/SymfonyComponents/YAML/sfYamlInline.php as…
nonshatter
  • 3,347
  • 6
  • 23
  • 27
2
votes
1 answer

Switch to turn on/off Atlassian Clover in Maven

I am using Clover via Maven during every build. The majority of the time the code coverage does not change much so I now do not want to have it run every time. Clover slows down the compilation a lot. Is there a maven switch that allows me to not…
RNJ
  • 15,272
  • 18
  • 86
  • 131
2
votes
1 answer

Maven suddenly downloading maven-clover2-plugin

Yesterday, while compiling our web application using Maven, it started downloading the maven-clover2-plugin version 3.1.3-SNAPSHOT com.atlassian.maven.plugins:maven-clover2-plugin:3.1.3-SNAPSHOT Without success because this version is not yet added…
H-H
  • 4,431
  • 6
  • 33
  • 41
2
votes
2 answers

Clover - getting coverage without automated tests

I am currently exploring various code coverage tools for use in project and short listed on clover amongst clover, Emma and cobertura. ( My org is ready to pay for clover and its nice ) But we donot have automated tests. all tests are manual and we…
JWhiz
  • 681
  • 3
  • 10
  • 22
2
votes
1 answer

Clover XML Report - Classes and Trait coverage formula

I am working on a customized application to parse through the clover.xml report. Just wondering if anybody knows which is the correct formula to get the Classes and Traits total coverage percentage. Here's the formulas that I found for Lines and…
Everton Wcks
  • 99
  • 1
  • 6
1 2
3
14 15