Maven 1.x JCoverage Plugin
  1. Maven 1.x JCoverage Plugin
  2. MPJCOVERAGE-16

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
    • 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.

      1. patch.txt
        0.7 kB
        Michael Gaffney

        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

          • Assignee:
            Emmanuel Venisse
            Reporter:
            Michael Gaffney
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: