Generating code coverage for Java applications
Code coverage tools provide insight into how well your test cases are exercising your Java™ applications by generating statistics showing the percentage of lines in your code that have been run by a test case.
About this task
You enable code coverage by project, and then run the project code to see the extent of coverage. You can configure the appearance of coverage indicators in the Package Explorer and the Java editor.
Restriction: Java code coverage generation is not supported on macOS®. You can import code coverage results that are generated on other support platforms to generate and view code coverage reports.
You can compile the code coverage results into reports that you can view in the workbench or save in PDF files for future analysis.