method

902Currently online
81Today's Reading
27Share Today
Multilingual display

java code coverage detection plug-in EclEmma

2018-03-18 22:24:46

In order to prevent code redundancy, it is important to check the coverage of their code after the painstaking writing of the code

Tools/Materials
1

Eclema-2.3.2.zip is available for download online

2

JUnit tests the class because this detection is based on the JUnit unit test class

Methods/Steps
1

Unzip the downloaded eclema-2.3.2.zip

2

Copy all the extracted items to the dropins folder in your MyEclipse installation directory

3

Restart MyEclipse, right-click the JUnit Test class, and you'll see the Cowerage As option. Click JUnit Test to generate code coverage

Matters needing attention
1

The plug-in is based on the JUnit test class, so it uses the existing JUnit unit test class

2

Green indicates code that has been executed, red indicates that it has not been executed, and yellow indicates that it has not been executed

Recommendation