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 for different tests

Hello, I need to separate my report to two linked reports (for JUnit and Distributed tests)

I create file for ant to use it in the maven.

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

What need me write here that I will get separated JUnit and Distributed test statistic?

1 answer

1 accepted

1 vote
Answer accepted

How do you have Clover instrumentation configured for your JUnit and Distributed tests? My suggestion is:

  • in order to have completely separate data, you shall have two independent sets of coverage recording files - so either to create two Clover databases (clover-junit.db + clover-distributed.db, for instance) or to have one Clover database but keep recording files separately (e.g. copy clover.db to different folder during test execution and set -Dclover.initstring.path property at runtime)
  • in order to have JUnits executed locally and Distributed ones with <distributedCoverage> option you have to either instrument code twice (using two profiles, for instance) or instrument once, but enable distributed coverage using runtime properties
  • then as you have two sets of coverage recording files, you can point to them in the <clover-report initstring="/path/to/clover.db"><current>...</current></clover-report> tasks in your report descriptor



Suggest an answer

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

Jira Cloud Performance Improvements

Hello everyone, I am a product manager in the Jira Cloud team focused on making sure our customers have a delightful experience using our products. Towards that goal, one of the areas which is extr...

176 views 2 9
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