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   Resolved: 23/Jan/05 10:13 AM
Return to search
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.



Michael Gaffney added a comment - 12/Oct/04 12:38 PM

Attached patch file.


Michael Gaffney made changes - 12/Oct/04 12:38 PM
Field Original Value New Value
Attachment patch.txt [ 13191 ]
Emmanuel Venisse added a comment - 23/Jan/05 10:13 AM

Applied.


Emmanuel Venisse made changes - 23/Jan/05 10:13 AM
Resolution Fixed [ 1 ]
Status Open [ 1 ] Closed [ 6 ]
Fix Version/s 1.0.10 [ 11470 ]