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

support of parallelism with per test coverage data

tom vin Mar 21, 2016

Hi,

I would like to understand a couple of thinks regarding Clover coverage tool.

As we know, surefire / failsafe has some parallel strategy for running tests, meaning - one can run his tests with a number of threads or processes. (https://maven.apache.org/surefire/maven-surefire-plugin/examples/fork-options-and-parallel-execution.html)

I saw, in the following link (https://confluence.atlassian.com/display/CLOVER/Using+Distributed+Per-test+Coverage) that in clover configuration, one have to configure the parameter "forkMode" = once, which is equals to running only one process.

Some environment background: 
we are using jenkins as a CI server, maven to build our app surefire / failsafe for running our tests. 

I wanted to know, 

can we collect coverage per test when running surefire / failsafe in parallel mode ? (threads or processes) with clover ?

 

Thanks,

Tom.

1 answer

0 votes
Marek Parfianowicz Atlassian Team Mar 21, 2016

You can't.

The reason is that Clover's per-test coverage feature is based on timing, not on threads. So it means that whenever given test starts and finishes, Clover calculates coverage delta - thanks to this we know what has been added to the coverage in the meantime - and this is the "per-test". Clover does not distinguish which thread generated the coverage.

 

Marek Parfianowicz Atlassian Team Mar 21, 2016

Of course you can measure global coverage with surefire's parallel mode.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in Statuspage

⭐️Would you recommend Statuspage? Leave a (honest!) review. ⭐️

Hi Community friends, We're working on sourcing more reviews on Capterra – a popular software review site –  to help teams like yours make more informed decisions when choosing an inc...

86 views 3 5
Join discussion

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