Maven 1.x JCoverage Plugin

Using maven.jcoverage.instrumentation.exclude causes tests to fail

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0.8
  • Fix Version/s: 1.1
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    1

Description

If you specify a file set that should not be instrumented using the 'maven.jcoverage.instrumentation.exclude' property your tests will fail if any of them depend on those files.

For example, I set 'maven.jcoverage.instrumentation.excludes=**/*Exception.class' so that my Exception classes would not be calculated in my code coverage stats. Unfortunately, my tests wouldn't run because all of my classes, including my test classes, rely on the Exception classes.

This is fairly critical for me, so I've attached a patch.

Activity

Hide
Michael Gaffney added a comment -

Attached patch file.

Show
Michael Gaffney added a comment - Attached patch file.
Hide
Emmanuel Venisse added a comment -

Applied.

Show
Emmanuel Venisse added a comment - Applied.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: