You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tibor Digana (JIRA)" <ji...@apache.org> on 2015/05/28 23:21:17 UTC

[jira] [Created] (SUREFIRE-1160) -DTest=... should be independent of execustion section

Tibor Digana created SUREFIRE-1160:
--------------------------------------

             Summary: -DTest=... should be independent of execustion section
                 Key: SUREFIRE-1160
                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1160
             Project: Maven Surefire
          Issue Type: Bug
          Components: Maven Failsafe Plugin, Maven Surefire Plugin
    Affects Versions: 2.18.1
            Reporter: Tibor Digana
            Assignee: Tibor Digana
             Fix For: 2.19


Currently test/it.test property overrides includes and excludes parameters with default execution phase id:
{code}
<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>
{code}
The command mvn verify -Dit.test=ExampleTest#testFailsafe should override the includes/excludes parameter whatever execution is specified.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)