[
https://issues.apache.org/jira/browse/SUREFIRE-1170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16773866#comment-16773866
]
Andreas Gudian commented on SUREFIRE-1170:
------------------------------------------
>From a user perspective, when using {{-DskipTests}} I simply want to skip
>executing tests. I don't care which plugin is configured to execute the
>specific tests. In my projects, I've even bound the {{skipTests}} property to
>prevent other plugins to skip pre/post-integration-test executions (like
>starting / stopping Docker containers).
So I agree with [~dariusx] that it might be better to keep the behavior of
{{-DskipTests}} for a global, non-plugin specific switch, and rather introduce
properly prefixed switches for Failsafe and Surefire, e.g.
{{failsafe.skipTests}} and {{surefire.skipTests}} for a more fine-grained
control (and maybe deprecate the non-prefixed {{skipITs}} property).
WDYT?
> skiptTests=true is used by maven-surefire-plugin as well as of
> maven-failsafe-plugin
> ------------------------------------------------------------------------------------
>
> Key: SUREFIRE-1170
> URL: https://issues.apache.org/jira/browse/SUREFIRE-1170
> Project: Maven Surefire
> Issue Type: Bug
> Components: Maven Failsafe Plugin, Maven Surefire Plugin
> Affects Versions: 2.18.1
> Reporter: Karl Heinz Marbaise
> Priority: Major
> Fix For: 3.0.0-M6
>
>
> By using the properties {{skipTests=true}} will skip the tests for
> maven-surefire-plugin as well as for maven-failsafe-plugin.
> So currently it's not simple to make a separation of skipping either unit
> tests (maven-surefire-plugin) or integration tests (maven-failsafe-plugin).
> maven-failsafe-plugin has a property {{skipITs=true}} which will skip the
> integration tests.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)