clean check exection
--------------------

                 Key: MCOBERTURA-90
                 URL: http://jira.codehaus.org/browse/MCOBERTURA-90
             Project: Maven 2.x Cobertura Plugin
          Issue Type: Bug
    Affects Versions: 2.2
         Environment: mvn --version
Maven version: 2.0.8
Java version: 1.6.0_06
OS name: "linux" version: "2.6.24-19-generic" arch: "i386" Family: "unix"

            Reporter: tibi
            Priority: Minor


in the documentation on: 
http://mojo.codehaus.org/cobertura-maven-plugin/usage.html
there is this part:
"The plugin can check the post-testing coverage percentages to ensure a valid 
level of test coverage."

with an example and the important bit:

      <executions>
          <execution>
            <goals>
              <goal>clean</goal>
              <goal>check</goal>
            </goals>
          </execution>
        </executions>

to me its not clear when this plugin will run so better is this (or add when 
its running):
      <executions>
          <execution>
           <phase>test</phase>
            <goals>
              <goal>clean</goal>
              <goal>check</goal>
            </goals>
          </execution>
        </executions>

but now i see a bug. the tests are run then coberture runs the test again 
(anying but no problem)
then i get this:
[INFO] [cobertura:clean {execution: default}]
[INFO] [cobertura:check {execution: default}]
[INFO] Cannot perform check, instrumentation not performed - skipping.

the clean task is done to late! after the instrumentation. 


solution: this works with 
mvn test
      <executions>
          <execution>
           <phase>test</phase>
            <goals>
              <goal>check</goal>
            </goals>
          </execution>
        </executions>




-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to