[
https://jira.codehaus.org/browse/SUREFIRE-1143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=363490#comment-363490
]
Tibor Digana commented on SUREFIRE-1143:
----------------------------------------
@Elad
You can use {code}mvn install -DskipITs{code} to install your artifact and skip
ITs on regular basis.
To skip unit tests {code}mvn install -DskipUnits{code} you need to have a
tricky profile.
{code}
<profiles>
<profile>
<id>skip-unit-tests</id>
<activation>
<property>
<name>skipUnits</name>
</property>
</activation>
</profile>
<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.18.1</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</profiles>
{code}
> excludedGroups in pom.xml are ignored with TestNG
> -------------------------------------------------
>
> Key: SUREFIRE-1143
> URL: https://jira.codehaus.org/browse/SUREFIRE-1143
> Project: Maven Surefire
> Issue Type: Bug
> Components: Maven Failsafe Plugin
> Affects Versions: 2.18
> Environment: Linux - Ubuntu 14.x.
> Oracle JDK 1.7.
> Reporter: Elad Tabak
> Assignee: Tibor Digana
> Attachments: surefire-bug.tar.gz
>
>
> When setting excluded groups in pom.xml under surefire/failsafe plugin, the
> tests on that groups still getting invoked.
> Using TestNG annotation with @Test(groups = ...)
> However, using the command line argument "-DexcludedGroups=...", the tests
> are skipped.
> See attached project. To reproduce the issue with the test project:
> Run: mvn clean install
> Result: test invoked, build failed.
> Expected result: test excluded, build pass
> Run: mvn clean install -DexcludedGroups=group1
> Result: test excluded, build pass, as expected
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)