[ http://jira.codehaus.org/browse/MCLOVER-42?page=all ]

Vincent Massol updated MCLOVER-42:
----------------------------------

      Assign To: Vincent Massol
    Description: 
My pom.xml includes some testRecources, see an example below. 

{code:xml}
...
  <build>
        <testResources>
                <testResource>
                        <directory>../SubProjectA/src/test/resources</directory>
                </testResource>
        </testResources>
  </build>
...
{code}

Note that the testResource is an 'external' resource, in this case it is in 
another sub project. The reason for this is that the testResource is shared by 
multiple projects and it just happens to be located in SubProjectA.

Now, when I run mvn:test, all tests run ok. However when running mvn 
clover:instrument or mvn:site, tests fail because the testResource is not on 
the classpath.

Brgrds, Erwin.

  was:
My pom.xml includes some testRecources, see an example below. 

...
  <build>
        <testResources>
                <testResource>
                        <directory>../SubProjectA/src/test/resources</directory>
                </testResource>
        </testResources>
  </build>
...

Note that the testResource is an 'external' resource, in this case it is in 
another sub project. The reason for this is that the testResource is shared by 
multiple projects and it just happens to be located in SubProjectA.

Now, when I run mvn:test, all tests run ok. However when running mvn 
clover:instrument or mvn:site, tests fail because the testResource is not on 
the classpath.

Brgrds, Erwin.

    Fix Version: 2.2
        Summary: clover:instrument does not take testResources into account  
(was: clover:instrument does not take testRecources into account)

> clover:instrument does not take testResources into account
> ----------------------------------------------------------
>
>          Key: MCLOVER-42
>          URL: http://jira.codehaus.org/browse/MCLOVER-42
>      Project: Maven 2.x Clover Plugin
>         Type: Bug

>     Versions: 2.1
>     Reporter: ErwinTukker
>     Assignee: Vincent Massol
>      Fix For: 2.2

>
>
> My pom.xml includes some testRecources, see an example below. 
> {code:xml}
> ...
>   <build>
>       <testResources>
>               <testResource>
>                       <directory>../SubProjectA/src/test/resources</directory>
>               </testResource>
>       </testResources>
>   </build>
> ...
> {code}
> Note that the testResource is an 'external' resource, in this case it is in 
> another sub project. The reason for this is that the testResource is shared 
> by multiple projects and it just happens to be located in SubProjectA.
> Now, when I run mvn:test, all tests run ok. However when running mvn 
> clover:instrument or mvn:site, tests fail because the testResource is not on 
> the classpath.
> Brgrds, Erwin.

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

Reply via email to