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

Per test coverage of unit tests


As part of my research, I would like to get coverage measurements per unit test (which is equal to run a single test and check how it covers the whole system)

I followed the guides and I get the coverage in the .html format

I would like to get the different coverage metrics per method in an XML format or a text file which will help me to automate the process of data.

Is there a way to do that?


Many thanks!

1 answer

0 votes

This is not available out of the box, I'm afraid. But you can read the Clover's database and coverage recording files to extract the data you need. See:

Thanks for your response!

I'm trying to use the given API but it seems like the only thing I can get is the total number of statements\branches covered by in a single method. What I really look for is the number of statements covered in the whole projects by a single test method (in order to measure the effectiveness of the specific test method).

Does the API allows such a thing or do you know any other reasonable way to do so without running the test suite multiple times with a single test active each time?


Many thanks!

I'm not sure what do you want to achieve exactly. 

But please have a look at per-test coverage files - they track code coverage generated by each test separately (in addition to the global coverage file created).

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...

175 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