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/10/23 16:49:27 UTC

[jira] [Closed] (SUREFIRE-1188) Testnames feature doesn't work with nested xml

     [ https://issues.apache.org/jira/browse/SUREFIRE-1188?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tibor Digana closed SUREFIRE-1188.
----------------------------------
       Resolution: Not A Problem
         Assignee: Tibor Digana
    Fix Version/s:     (was: 2.19)

Yes with main-suite.xml it works and that's exactly how our internal integration test confirmed working feature in TestNG.
The surefire plugin only uses TestNG class and we passed "testnames" into it as expected. What TestNG is doing internally with suite composition is the internal issues of TestNG. Please contact the TestNG team in GitHub and report a bug. They will best tell you what is legal use.
Please attach a link pointing to GitHub issue.

> Testnames feature doesn't work with nested xml
> ----------------------------------------------
>
>                 Key: SUREFIRE-1188
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1188
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Surefire Plugin
>    Affects Versions: 2.19
>         Environment: Win7 x64, JDK8 x64.
>            Reporter: Sergey Korol
>            Assignee: Tibor Digana
>              Labels: maven-surefire-plugin, testnames
>
> 1) Pull sources with test to repruduce an issue -> https://github.com/sskuts/maven-surefire-tests
> 2) Run 'mvn clean test' command.
> Expected result: only 'testGroup2' is executed;
> "I'm a message from sampleOutputTest2() -> [thread id]" is displayed.
> Actual result: both 'testGroup1' and 'testGroup2' are executed;
> "I'm a message from sampleOutputTest1() -> [thread id]"
> "I'm a message from sampleOutputTest2() -> [thread id]" are displayed.
> The main problem is that current 'testnames' feature implementation doesn't support nested xml parsing. Attached test uses 'upstream-suite.xml', which includes subsuite 'main-suite.xml'. As a result, nothing was filtered. If you change xml reference in pom to 'main-suite.xml', you'll see an expected filtered output.



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