Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

As a result, Jtest will disable collecting coverage for folders that are defined in the project properties as test folders (folders that contain test sources).

Info
iconfalse
titleCollecting coverage for tests in different Eclipse versions

Due to the differences between Eclipse versions, the 'Enable collecting coverage for tests' option applies to either test folders or test classes:

  • In Eclipse 4.8 or later, it applies to folders that are defined in the project properties as test folders (folders that contain test sources). For this reason, to prevent collecting coverage for your test, you need to ensure that test folders are properly defined in your project.
  • In Eclipse 4.7 or earlier, it applies to test classes (JUnit 4 or 5 annotated classes). For this reason, excluding tests from coverage is not supported if you are using the Jacoco engine, which relies on test folders defined in project properties.

Excluding Selected Packages from Coverage Scope

...