Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Clover's report: Distrebuted and unit tests

Hello, how can i to differentiate UTest to Integration (distributed) tests in the html report?

2 answers

1 accepted

1 vote
Answer accepted

I'm not sure what you'd like to achieve exactly - separate tabs for "Tests" and "Integration tests"? separate html reports? code coverage calculated separately for normal and distributed run?

If you'd like to have two reports - one with unit tests and one with integration tests and both using the same coverage data, then please have a look at the <clover-report> task:

You can define multiple <current> elements with different <fileset> settings, reports will be linked with each other (link will be present in top-left frame below the "Test Results").


I would like to separate tabs for "Tests" and "Integration tests"(It is best of all) or separate html reports

I uses clover-maven plagin for generating reports, how I can do it by mvn command?

Two tabs - not possible. But two linked reports - yes. In case of Maven build - for the clover2:clover configure a <reportDescriptor> option and point to location of the special report descriptor file. This file should be an Ant build file with two targets named "historical" and "current". In these targets you can define standard clover-report tasks. You can also have an access to few maven pom.xml settings by predefined Ant properties (like ${output}, ${cloverdb}).

Please have a look at the default-clover-report.xml file inside the maven-clover2-plugin-X.X.X.jar for reference.



Thanks for Your answer!

But i don't understand how it implemented, for example: i have 1 java class and Junit test class, and some distributed tests, i created xml file with 2 "current" tags:

&lt;project name="Clover Report" default="current"&gt;
    &lt;clover-format id="clover.format" type="${type}" orderBy="${orderBy}" filter="${filter}"/&gt;
    &lt;clover-setup initString="${cloverdb}"/&gt;
    &lt;clover-columns id="clover.columns"&gt;
        &lt;uncoveredElements format="raw"/&gt;
        &lt;totalPercentageCovered format="longbar"/&gt;
    &lt;target name="historical"&gt;
            &lt;current outfile="${output}"  summary="${summary}"&gt;
                &lt;format refid="clover.format"/&gt;
                &lt;testsources dir="${tests}"/&gt;
                &lt;columns refid="clover.columns"/&gt;
            &lt;historical outfile="${historyout}" historydir="${history}"&gt;
                &lt;format refid="clover.format"/&gt;
                &lt;columns refid="clover.columns"/&gt;
    &lt;target name="current"&gt;
            &lt;current outfile="C:\root_cvs\test\azelentsov\clover_prototype_code_coverage\target\site\clover\clover1.xml" title="title1" summary="${summary}"&gt;
                &lt;format refid="clover.format"/&gt;
                &lt;testsources dir="${tests}"/&gt;
                &lt;columns refid="clover.columns"/&gt;	
		&lt;fileset dir=""/&gt;
            &lt;current outfile="${output}" title="title2" summary="${summary}"&gt;
                &lt;format refid="clover.format"/&gt;
                &lt;testsources dir="${tests}"/&gt;
                &lt;columns refid="clover.columns"/&gt;
		&lt;fileset dir=""/&gt;


What should I write in this file that i can see statistics for my junit tests and for distributed tests?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

Announcing Team Calendars in Confluence Data Center

Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond.  A long time favorite,  Team Cale...

26 views 0 2
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you