maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mario Krautz (JIRA)" <j...@codehaus.org>
Subject [jira] (SUREFIRE-834) Groups are ignored if test are executed in parallel mode
Date Fri, 14 Sep 2012 13:14:21 GMT

     [ https://jira.codehaus.org/browse/SUREFIRE-834?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Mario Krautz closed SUREFIRE-834.
---------------------------------

    Resolution: Fixed
    
> Groups are ignored if test are executed in parallel mode
> --------------------------------------------------------
>
>                 Key: SUREFIRE-834
>                 URL: https://jira.codehaus.org/browse/SUREFIRE-834
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Junit 4.7+ (parallel) support, Junit 4.x support
>    Affects Versions: 2.12
>         Environment: Linux 3.0.0-15-generic #26-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux
> Junit 4.10
>            Reporter: Mario Krautz
>         Attachments: bugexample.zip, surefire834_integrationtest.patch, test-playground.tar.gz,
test-playground.tar.gz
>
>
> Hi!
> We have a maven-project containing multiple modules. Our junit tests are annotated with
categories (@Category annotation). If we start the test with:
> {code}mvn clean verify -Dgroups=org.example.MyCategory{code}
> everything works as expected (only MyCategory-annotated tests are executed). 
> But in parallel mode *all* tests are executed!
> I have attached an example project to demonstrate the bug.
> When executing:
> {code}mvn clean verify -Dgroups=org.example.MyCategory{code}
> two test are executed.
> When executing:
> {code}mvn clean verify -Dgroups=org.example.MyCategory -Pparallel{code}
> four tests are executed.
> The parallel profile looks like this:
> {code}
>     <profile>
>       <id>parallel</id>
>       <build>
>         <plugins>
>           <plugin>
>             <groupId>org.apache.maven.plugins</groupId>
>             <artifactId>maven-failsafe-plugin</artifactId>
>             <version>2.12</version>
>             <configuration>
>               <parallel>methods</parallel>
>               <threadCount>2</threadCount>
>               <perCoreThreadCount>false</perCoreThreadCount>
>             </configuration>
>           </plugin>
>         </plugins>
>       </build>
>     </profile>
> {code}

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

        

Mime
View raw message