Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

unit testing - per test code coverage for java

We use use junit for unit testing our java code. Today we use cobertura to get coverage numbers. It does not have an easy way of getting per test coverage number. Is there a tool to get per test code coverage - commercial/free?

(cobertura has a patch to get per test coverage numbers, out of date with latest cobertura).

like image 604
Jayan Avatar asked Sep 10 '26 22:09

Jayan


1 Answers

we used clover to good effect. we wrote some ant tasks that allowed us to run it from a dev box, so we could view the coverage numbers locally, and we also integrated it into our continuos integration so we had a site for the official number.

http://www.atlassian.com/software/clover/

the only issue we had was it is a memory hog....

like image 166
hvgotcodes Avatar answered Sep 12 '26 11:09

hvgotcodes



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!