Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space ENGINES1031 and version DEV

...

  1. Choose Run> Run Configurations... to open the Run Configurations dialog.
  2. Select a configuration and click the Jtest tab. 
  3. Select the Enable coverage option to activate collecting coverage. This option is disabled enabled by default.



  4. (Optional) Select the Enable Unit Test Assistant option to run your tests with Unit Test Assistant, which can help you improve the test quality. See Creating, Analyzing and Enhancing Tests with Unit Test Assistant for more information.



  5. Click Apply.

...

By default, coverage is collected and reported for the project that includes the tested class and its depending projects. The projects included in the scope are displayed in the Included Projects field in the Jtest tab.

Image Added

all classes in the workspace. You can narrow the coverage scope to include only the items selected in your Eclipse Package Explorer or to exclude specified classes.

...

  1. Choose Run > Run Configurations... to open the Run Configurations dialog.
  2. Select a configuration and click the Jtest tab. 
  3. Enable the Report coverage for selection only option.
    Image Removed
    Image Added

  4. Click Apply.

The Included Projects field will be disabled and coverage will be reported only for the items selected in the Package Explorer.  

...

  1. Choose Run > Run Configurations... to open the Run Configurations dialog.
  2. Select a configuration and click the Jtest tab. The Exclude field defines which packages should be excluded. 
    Image Removed
    Image Added

  3. Click New to specify the patterns for excluding packages. You can manually enter a pattern or use the browsing interface to find packages.



  4. Click Apply.

...