Uploaded image for project: 'Clover'
  1. Clover
  2. CLOV-194

Maven-clover-plug-in and Eclipse-Clover-plug in give different coverage results.

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Medium Medium
    • won't fix
    • 2.1.0
    • None
    • None
    • Eclipse V3.2, Eclipse Clover Plug-in v2.1.0, Maven-clover-plug-in V3.7. OS windows XP

      I have a project for which the Clover plug in for eclipse reports a coverage of 88.7%, but the Maven-clover-plug-in reports code coverage of 81.2%.

      I suspect that the variation is caused by the includes, excludes settings.

      I've set the includes in the Eclipse plugin as:

      src/main/java/*/.java

      and the excludes as:

      src/test/java/*/.java

      In the maven pom file I've configured the excludes as:

      <excludes>
      <exclude>src/test/java/*/.java</exclude>
      </excludes>

      but whenever I add:

      <includes>
      <include>src/main/java/*/.java</include>
      </includes>

      The maven colver plug in reports that no sources could be found.

      Thanks,

      Peter Johnstone

              npellow Nick
              1d6c5a7445c5 Peter Johnstone
              Affected customers:
              0 This affects my team
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: