[ 
https://jira.codehaus.org/browse/SUREFIRE-1005?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=326801#comment-326801
 ] 

Gal Ben Ami edited comment on SUREFIRE-1005 at 6/15/13 10:10 AM:
-----------------------------------------------------------------

Thanks for taking a look.
Added sample_project.zip - to demonstrate the problem.
After some more investigation, i see that the problem is that on windows, if i 
have a package named test, the class in it is getting scanned for tests. On 
linux it is not getting scanned.
So, the issue is that you will get different tests running on linux and windows.
In sample_project.zip I gave the output of running mvn clean install on windows 
and linux.

Thanks again!
                
      was (Author: galusben):
    Added sample_project.zip - to demonstrate the problem.
                  
> Tests are ignored when using dependenciesToScan on linux only
> -------------------------------------------------------------
>
>                 Key: SUREFIRE-1005
>                 URL: https://jira.codehaus.org/browse/SUREFIRE-1005
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Junit 4.x support
>    Affects Versions: 2.15
>         Environment: Linux CentOS 6.3 
>            Reporter: Gal Ben Ami
>         Attachments: sample_project.zip
>
>
> When building on Windows 7 64 bit I can't see any problem.
> When running on linux my tests aren't running, or at least don't get reported.
> I am using the same project on 2 machines.
> I am using the feature described in: SUREFIRE-569. 
> http://jira.codehaus.org/browse/SUREFIRE-569
> {{{
>                       <plugin>
>                               <groupId>org.apache.maven.plugins</groupId>
>                               <artifactId>maven-surefire-plugin</artifactId>
>                               <version>2.15</version>
>                               <configuration>
>                                       <dependenciesToScan>
>                                               
> <dependency>my.group:myArtifact</dependency>
>                                       </dependenciesToScan>
>                                       
> <argLine>-DbaseClassesPath=${project.build.directory}${file.separator}classes</argLine>
>                               </configuration>
>                       </plugin>
>                       
>               <dependency>
>                       <groupId>my.group</groupId>
>                       <artifactId>myArtifact</artifactId>
>                       <version>version</version>
>                       <type>test-jar</type>
>                       <scope>test</scope>
>               </dependency>
> }}}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to