[ 
https://issues.apache.org/jira/browse/SUREFIRE-1343?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15927208#comment-15927208
 ] 
Jakob Oswald edited comment on SUREFIRE-1343 at 3/15/17 11:48 PM:
------------------------------------------------------------------

I understand the preference of loading classes from the packaged artifact. 
However I would like to use instrumented classes to record coverage for 
integration tests. I would expect failsafe to respect my choice if I explicitly 
set the classesDirectory property and not just ignoring the parameter. What 
else would be the recommended scenario here? Would I have to package an 
additional jar with the instrumented classes and move the jars around?


was (Author: jakob_oswald):
I understand the preference of loading classes from the packaged artifact. I 
would like however to use instrumented classes to record coverage for 
integration tests. I would expect failsafe to respect my choice if I explicitly 
set the classesDirectory property and not just ignoring the parameter. What 
else would be the recommended scenario here? Would I have to package an 
additional jar with the instrumented classes and move the jars around?

> Failsafe ignores classesDirectory
> ---------------------------------
>
>                 Key: SUREFIRE-1343
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1343
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: classloading
>    Affects Versions: 2.19.1
>            Reporter: Jakob Oswald
>
> The maven failsafe pluging ignores the <classesDirectory> property in 
> versions 2.19.x version 2.18.1 works as expected / documented. 
> Config:
> {code:xml}
> ...
> <configuration>
>     <classesDirectory>${project.build.directory}/classes</classesDirectory>
> </configuration>
> ...
> {code}
> Cmd:
> mvn -X clean verify
> Output:
> 2.18.1
> [DEBUG] boot classpath:
> /home/jakob/.m2/repository/org/apache/maven/surefire/surefire-booter/2.18.1/surefire-booter-2.18.1.jar
> /home/jakob/.m2/repository/org/apache/maven/surefire/surefire-api/2.18.1/surefire-api-2.18.1.jar
> /home/jakob/source/java/qualinsight-mojo-cobertura-test/target/test-classes
> /home/jakob/source/java/qualinsight-mojo-cobertura-test/target/classes
> ...
> 2.19.1
> [DEBUG] boot classpath:
> /home/jakob/.m2/repository/org/apache/maven/surefire/surefire-booter/2.19.1/surefire-booter-2.19.1.jar
> /home/jakob/.m2/repository/org/apache/maven/surefire/surefire-api/2.19.1/surefire-api-2.19.1.jar
> /home/jakob/source/java/qualinsight-mojo-cobertura-test/target/test-classes
> /home/jakob/source/java/qualinsight-mojo-cobertura-test/target/qualinsight-mojo-cobertura-test-0.0.1-SNAPSHOT.jar
> ...



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to