[ https://jira.codehaus.org/browse/SUREFIRE-905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=346078#comment-346078 ]
Herve Boutemy commented on SUREFIRE-905: ---------------------------------------- is it a duplicate of MSHARED-271? did you try with m-site-p 3.3? > Surefire report plugin only executed tests once. Junit Categorization is not > possible > ------------------------------------------------------------------------------------- > > 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)