GitBox
2018-12-09 19:02:49 UTC
srdo commented on issue #206: SUREFIRE-1610: Add skipUTs flag to SurefirePlugin
URL: https://github.com/apache/maven-surefire/pull/206#issuecomment-445562341
Thanks for responding.
```
<profile>
<id>integration-tests-only</id>
<properties>
<skipITs>false</skipITs>
</properties>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
```
Assuming you don't want to remove `skipTests` from Failsafe, and also don't want a new Surefire parameter, I'm not sure there's a better solution than the profile?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
***@infra.apache.org
With regards,
Apache Git Services
URL: https://github.com/apache/maven-surefire/pull/206#issuecomment-445562341
Thanks for responding.
You could have 'profile' in which you are disabling surefire.
So
mvn verify -Prun-its
Where 'run-its' is a profile in which surefire is disabled
Yes, that's what I'm doing now. It's very verbose, which is why I thought a parameter for it would be nicer:So
mvn verify -Prun-its
Where 'run-its' is a profile in which surefire is disabled
```
<profile>
<id>integration-tests-only</id>
<properties>
<skipITs>false</skipITs>
</properties>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
```
I guess you have a problem with the system property used by both plugins the same and you cannot > segregate them. Is it so?
Yes. `skipTests` is used by both plugins, and Surefire doesn't have anything like Failsafe's `skipITs`.At the same time we should remove skipTests from maven-failsafe-plugin because this was long time associated with unit tests and thus maven-surefire-plugin
Am I understanding you correctly that you're planning to remove `skipTests` from Failsafe? It isn't deprecated yet. Removing it from Failsafe would solve this.Assuming you don't want to remove `skipTests` from Failsafe, and also don't want a new Surefire parameter, I'm not sure there's a better solution than the profile?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
***@infra.apache.org
With regards,
Apache Git Services