Issue Details (XML | Word | Printable)

Key: MPJCOVERAGE-16
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Emmanuel Venisse
Reporter: Michael Gaffney
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Maven 1.x JCoverage Plugin

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

Created: 12/Oct/04 12:37 PM   Updated: 23/Jan/05 10:13 AM
Component/s: None
Affects Version/s: 1.0.8
Fix Version/s: 1.1

Time Tracking:
Not Specified

File Attachments: 1. Text File patch.txt (0.7 kB)



 Description  « Hide
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.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Michael Gaffney added a comment - 12/Oct/04 12:38 PM
Attached patch file.

Emmanuel Venisse added a comment - 23/Jan/05 10:13 AM
Applied.