You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Herve Boutemy (JIRA)" <ji...@codehaus.org> on 2014/05/12 01:05:10 UTC

[jira] (SUREFIRE-905) Surefore report plugin only executed tests once.Junit Categorization is not possibel

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

Herve Boutemy commented on SUREFIRE-905:
----------------------------------------

if you use maven-reporting-exec 1.2-SNAPSHOT with MSHARED-266 in m-site-p, it can help analyze forked executions by displaying them

I don't really understand what result you are expecting

> 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 was sent by Atlassian JIRA
(v6.1.6#6162)