Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-1160

-DTest=... should be independent of execustion section

    Details

      Description

      Currently test/it.test property overrides includes and excludes parameters with default execution phase id.

      <plugin>
      	<groupId>org.apache.maven.plugins</groupId>
      	<artifactId>maven-surefire-plugin</artifactId>
      	<version>2.18.1</version>
      	<configuration>
      		<includes>
      			<include>**/*Test.java</include>
      		</includes>
      	</configuration>
      	<executions>
      		<execution>
      			<id>another-test</id>
      			<goals>
      				<goal>test</goal>
      			</goals>
      		</execution>
      	</executions>
      </plugin>
      

      The command mvn verify -Dit.test=ExampleTest#testFailsafe should override the includes/excludes parameter whatever execution is specified.

        Attachments

          Activity

            People

            • Assignee:
              tibordigana Tibor Digana
              Reporter:
              tibordigana Tibor Digana
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: