maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tibor Digana (JIRA)" <>
Subject [jira] (SUREFIRE-1143) excludedGroups in pom.xml are ignored with TestNG
Date Tue, 17 Feb 2015 12:03:18 GMT


Tibor Digana commented on SUREFIRE-1143:

If I understand correctly, you are saying that the pom settings will make the test be skipped
in the "test" phase, but to run in the "integration-test" phase. Is that correct?

If so, in order to make the test NOT run during "mvn clean install", I should probably use
a profile settings like this thread suggests:
You will see several "skip" operations and most of them use the same property, except for
skipITs. It is a known bug, and therefore we will break the compatibility in surefire/failsafe
3.0 and the properties will have prefix surefire|failsafe in the future.
Currently you should switch on/off the unit/it tests via exclusive profiles.

> excludedGroups in pom.xml are ignored with TestNG
> -------------------------------------------------
>                 Key: SUREFIRE-1143
>                 URL:
>             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

View raw message