Highlighting Tested/Untested Code

The following instructions guide you through highlighting executed or non-executed code using CoViewDeveloper. It assumes your workspace already contains a project with JUnit test cases.

Getting Started

  • 1. Create a CoView JUnit Test Case.
  • 2. Execute the test using the CoView JUnit Runner (Run As > CoView JUnit Runner) or by selecting the 'Execute CoView JUnit Runner' icon in the CoView JUnit Developer View.
  • 3. To highlight executed code, in the CoView JUnit Developer View right-click on the method and select Source > Highlight Tested Code.

  • Highlighting Tested Code

  • 4. To highlight untested code, in the CoView JUnit Developer View right-click on the method and select Source > Highlight Untested Code.

  • Highlighting UnTested Code