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

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

Is there a way to have confluence build a chart that shows the aggregate of junit test reports

Edited

Is there a way to have confluence build a chart that shows the aggregate of junit test reports ? I would basically like to send new junit test reports into confluence and have it show the aggregate of the junit test files I've given it in a confluence page.

I'm probably looking for the same thing with Cobertura (code coverage) reports.

Thank you !

1 answer

Hi @mgreco ,

I'm not sure if this is your case, but if your test reports return in CSV or JSON formats, then the Table Filter and Charts for Confluence app may come in handy.

Check if the app has been already installed for your instance - look for the filtering button near the Edit page button or search for the Table Filter macro in the macro browser.

The algorithm will be as following:

  1. Use the Table from CSV or Table from JSON macros to upload your test report as a table onto your Confluence page (you may output data from a URL or an attached file).
  2. Wrap your macro in the Table Toolbox macro and create a sequence of Table from CSV (JSON) <- Pivot Table <- Chart from Table macros.
  3. As you may guess, the Pivot Table macro will aggregate your data like in Excel and the Chart from Table macro will visualize your information. 

The Table Toolbox macro is required to nest several macros - Cloud Confluence doesn't support this feature. But for Server/DC you'll be able to wrap macros inside each other directly.

I'm trying to figure out how to get all the reports expressed as JSON which that's easy to do for junit (unit testing reports) and a little tricker for cobertura (code coverage reports). The second I figure that out then I can work on the rest of this which I think the 1st part of that is figuring out how to use the confluence api to post these JSON files up for consumption into confluence.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD Trial
TAGS
Community showcase
Published in Confluence

Confluence Mythbusters: Does Atlassian even use Confluence?

Hi, Confluence collaborators! As part of #Confluence-Collaboratory month, we’ve created a very special Mythsbusters segment, where we're dive into an interesting myth and uncover the truth behind i...

1,598 views 7 30
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