Unit testing - to cover test code for java

We use junit to unit test our java code. Today we use cobertura to get coverage numbers. He has no easy way to get a coverage number. Is there a tool for getting test code coverage - commercial / free?

(cobertura has a patch to get numbers for each insurance number outdated with the latest cobertura).

+3
source share
3 answers

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

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

The only problem we encountered is the memory of God ....

+1
source

Emma provides detailed reports on the general / package / class to cover blocks and rows.

+1
source

- . ( , ).

SD Java Test Coverage Tool DumpVectors ResetVectors, . unit test, , unit test.

. ( ) , .

0

Source: https://habr.com/ru/post/1755107/


All Articles