shunit2 icon indicating copy to clipboard operation
shunit2 copied to clipboard

Add time measure to JUnit XML reports

Open AJIOB opened this issue 1 year ago • 5 comments

  • Implement time calculation
  • Add timestamp tag to the testcase
  • Time tag is not added if calculation generates an error
  • Add new functionality tests

AJIOB avatar Jun 21 '24 05:06 AJIOB

Hi @williamdes

This is the second part of #176, that was already implemented.

I hope it will be also useful for others

AJIOB avatar Jun 21 '24 05:06 AJIOB

I really want to generate Junit xml output for the unit tests I have written? Could you please guide me on how to use this fix?

Thanks

wiki5 avatar Aug 29 '24 06:08 wiki5

I really want to generate Junit xml output for the unit tests I have written? Could you please guide me on how to use this fix?

Thanks

I merged #184 from @crramirez and you can read more about junit on https://github.com/kward/shunit2?tab=readme-ov-file#junit-reports

@crramirez could you test this PR so I can merge it safely ?

@kward can you review it ?

williamdes avatar Oct 22 '24 10:10 williamdes

Yes I'll checkout this branch and integrate it in my work flow. It will be easy to see the spent time in the reporters of the CI tool

crramirez avatar Oct 22 '24 13:10 crramirez

Worked perfectly well in my case. @AJIOB excellent job!

image

crramirez avatar Oct 23 '24 22:10 crramirez

Can this be merged?

adam-moss avatar Apr 14 '25 19:04 adam-moss

IMO, yes

AJIOB avatar Apr 15 '25 04:04 AJIOB

@williamdes is this something you can facilitate please?

adam-moss avatar Apr 15 '25 09:04 adam-moss

@williamdes is this something you can facilitate please?

Well, I have the merge button I guess at some point I will have to make releases @kward is not responding since quite a while

Thank you all for contributing!

williamdes avatar Apr 15 '25 10:04 williamdes