Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse plugin for TestNG coverage [closed]

Does anybody know about an Eclipse plug-in to analyze code coverage for TestNG unit tests?

like image 774
Matthias Zerau Avatar asked Oct 29 '08 09:10

Matthias Zerau


People also ask

How do I stop eclipse from showing coverage?

Go to Windows Menu bar > Show View > Other > Type coverage and open it. Click on Coverage. To clear highlightings, click on X or XX icon as per convenience.

Why does Eclipse not show code coverage?

If it is the first time, you need to install eclemma from marketplace, after installation it will restart. Below is the path to find the coverage. Window >> Show view >> Other >> Type coverage, click on the coverage. When you do coverage as junit , you can able to see the code coverage.


2 Answers

EclEmma can be run on TestNG test suites. You can also run a group of test or a given TestNG class with it. It requires the TestNg plug-in

On EclEmma plugin, choose "coverage configuration..." and select the TestNG tab.

like image 71
Nicolas Avatar answered Oct 06 '22 12:10

Nicolas


Yes EclEmma is the best one. You can also try maven based cobertura which is also good enough.

like image 29
ravinikam Avatar answered Oct 06 '22 11:10

ravinikam