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

Dennis Lundberg updated SUREFIRE-905:
-------------------------------------

    Description: 
When I am trying to run categorized junit tests ,
maven surefire pluing run only first group. All other groups are skipped.
pom.xml
{code:xml}
           <plugin>
                            <groupId>org.apache.maven.plugins</groupId>
                            
<artifactId>maven-surefire-report-plugin</artifactId>
                            <version>2.12.2</version>
                            <reportSets>
                                <reportSet>
                                    <id>unit</id>
                                    <configuration>
                                         
<groups>com.mycompany.mavenproject2.UnitTest</groups> 
                                        <reportsDirectory> 
${project.build.directory}/surefire-reports/unit </reportsDirectory>
                                        
<outputName>surefire-report-unit</outputName>
                                        
<reportNameSuffix>UNIT</reportNameSuffix> 
                                    </configuration>
                                    <reports>
                                        <report>report</report>
                                    </reports>
                                </reportSet>
                                <reportSet>
                                    <id>comp</id>
                                    <configuration>
                                        
<groups>com.mycompany.mavenproject2.ComponentTest</groups> 
                                        <reportsDirectory> 
${project.build.directory}/surefire-reports/comp</reportsDirectory> 
                                        
<reportNameSuffix>COMPONENT</reportNameSuffix> 
                                        
<outputName>surefire-report-comp</outputName>     
                                    </configuration> 
                                    <reports>
                                        <report>report</report>
                                    </reports>
                                </reportSet>
                                <reportSet>
                                    <id>sys</id>
                                    <configuration>
                                        
<groups>com.mycompany.mavenproject2.SystemTest</groups>
                                        <reportsDirectory> 
${project.build.directory}/surefire-reports/sys</reportsDirectory>
                                        
<reportNameSuffix>SYSTEM</reportNameSuffix> 
                                        
<outputName>surefire-report-sys</outputName>                 
                                    </configuration> 
                                    <reports>
                                        <report>report</report>
                                    </reports>
                                </reportSet>
                            </reportSets>
                           
                        </plugin>
{code}

With output
{noformat}
 T E S T S
-------------------------------------------------------
Concurrency config is parallel='none', perCoreThreadCount=true, threadCount=2, 
useUnlimitedThreads=false
Running com.mycompany.mavenproject2.AppTest
UnitTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec

Results :

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0


[surefire:test]
Skipping execution of surefire because it has already been run for this 
configuration

[surefire:test]
Skipping execution of surefire because it has already been run for this 
configuration

[surefire:test]
Skipping execution of surefire because it has already been run for this 
configuration
{noformat}


  was:
When I am trying to run categorized junit tests ,
maven surefire pluing run only first group. All other groups are skipped.
pom.xml
           <plugin>
                            <groupId>org.apache.maven.plugins</groupId>
                            
<artifactId>maven-surefire-report-plugin</artifactId>
                            <version>2.12.2</version>
                            <reportSets>
                                <reportSet>
                                    <id>unit</id>
                                    <configuration>
                                         
<groups>com.mycompany.mavenproject2.UnitTest</groups> 
                                        <reportsDirectory> 
${project.build.directory}/surefire-reports/unit </reportsDirectory>
                                        
<outputName>surefire-report-unit</outputName>
                                        
<reportNameSuffix>UNIT</reportNameSuffix> 
                                    </configuration>
                                    <reports>
                                        <report>report</report>
                                    </reports>
                                </reportSet>
                                <reportSet>
                                    <id>comp</id>
                                    <configuration>
                                        
<groups>com.mycompany.mavenproject2.ComponentTest</groups> 
                                        <reportsDirectory> 
${project.build.directory}/surefire-reports/comp</reportsDirectory> 
                                        
<reportNameSuffix>COMPONENT</reportNameSuffix> 
                                        
<outputName>surefire-report-comp</outputName>     
                                    </configuration> 
                                    <reports>
                                        <report>report</report>
                                    </reports>
                                </reportSet>
                                <reportSet>
                                    <id>sys</id>
                                    <configuration>
                                        
<groups>com.mycompany.mavenproject2.SystemTest</groups>
                                        <reportsDirectory> 
${project.build.directory}/surefire-reports/sys</reportsDirectory>
                                        
<reportNameSuffix>SYSTEM</reportNameSuffix> 
                                        
<outputName>surefire-report-sys</outputName>                 
                                    </configuration> 
                                    <reports>
                                        <report>report</report>
                                    </reports>
                                </reportSet>
                            </reportSets>
                           
                        </plugin>


With output
 T E S T S
-------------------------------------------------------
Concurrency config is parallel='none', perCoreThreadCount=true, threadCount=2, 
useUnlimitedThreads=false
Running com.mycompany.mavenproject2.AppTest
UnitTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec

Results :

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0


[surefire:test]
Skipping execution of surefire because it has already been run for this 
configuration

[surefire:test]
Skipping execution of surefire because it has already been run for this 
configuration

[surefire:test]
Skipping execution of surefire because it has already been run for this 
configuration


    
> Surefore report plugin only executed tests once.Junit Categorization is not 
> possibel
> ------------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-905
>                 URL: https://jira.codehaus.org/browse/SUREFIRE-905
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Surefire Report Plugin
>    Affects Versions: 2.12.2
>         Environment: maven 3.0.4
> junit 4.8.1
>            Reporter: Ronal Bashirov
>         Attachments: mavenproject2.zip
>
>
> When I am trying to run categorized junit tests ,
> maven surefire pluing run only first group. All other groups are skipped.
> pom.xml
> {code:xml}
>            <plugin>
>                             <groupId>org.apache.maven.plugins</groupId>
>                             
> <artifactId>maven-surefire-report-plugin</artifactId>
>                             <version>2.12.2</version>
>                             <reportSets>
>                                 <reportSet>
>                                     <id>unit</id>
>                                     <configuration>
>                                          
> <groups>com.mycompany.mavenproject2.UnitTest</groups> 
>                                         <reportsDirectory> 
> ${project.build.directory}/surefire-reports/unit </reportsDirectory>
>                                         
> <outputName>surefire-report-unit</outputName>
>                                         
> <reportNameSuffix>UNIT</reportNameSuffix> 
>                                     </configuration>
>                                     <reports>
>                                         <report>report</report>
>                                     </reports>
>                                 </reportSet>
>                                 <reportSet>
>                                     <id>comp</id>
>                                     <configuration>
>                                         
> <groups>com.mycompany.mavenproject2.ComponentTest</groups> 
>                                         <reportsDirectory> 
> ${project.build.directory}/surefire-reports/comp</reportsDirectory> 
>                                         
> <reportNameSuffix>COMPONENT</reportNameSuffix> 
>                                         
> <outputName>surefire-report-comp</outputName>     
>                                     </configuration> 
>                                     <reports>
>                                         <report>report</report>
>                                     </reports>
>                                 </reportSet>
>                                 <reportSet>
>                                     <id>sys</id>
>                                     <configuration>
>                                         
> <groups>com.mycompany.mavenproject2.SystemTest</groups>
>                                         <reportsDirectory> 
> ${project.build.directory}/surefire-reports/sys</reportsDirectory>
>                                         
> <reportNameSuffix>SYSTEM</reportNameSuffix> 
>                                         
> <outputName>surefire-report-sys</outputName>                 
>                                     </configuration> 
>                                     <reports>
>                                         <report>report</report>
>                                     </reports>
>                                 </reportSet>
>                             </reportSets>
>                            
>                         </plugin>
> {code}
> With output
> {noformat}
>  T E S T S
> -------------------------------------------------------
> Concurrency config is parallel='none', perCoreThreadCount=true, 
> threadCount=2, useUnlimitedThreads=false
> Running com.mycompany.mavenproject2.AppTest
> UnitTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
> Results :
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
> [surefire:test]
> Skipping execution of surefire because it has already been run for this 
> configuration
> [surefire:test]
> Skipping execution of surefire because it has already been run for this 
> configuration
> [surefire:test]
> Skipping execution of surefire because it has already been run for this 
> configuration
> {noformat}

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

        

Reply via email to