You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Ondrej Zizka (JIRA)" <ji...@codehaus.org> on 2012/08/06 17:39:21 UTC

[jira] (SUREFIRE-856) Running single test in Failsafe using CLI does not override configuration

    [ https://jira.codehaus.org/browse/SUREFIRE-856?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=305636#comment-305636 ] 

Ondrej Zizka commented on SUREFIRE-856:
---------------------------------------

Actually, this behavior is the correct default one, and Surefire should be fixed to behave like this.
Whether to ignore <includes> / <excludes> or not should be optional.
                
> Running single test in Failsafe using CLI does not override <includes> configuration
> ------------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-856
>                 URL: https://jira.codehaus.org/browse/SUREFIRE-856
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Failsafe Plugin
>    Affects Versions: 2.12
>         Environment: Mac OS X 10.7, Maven 3.0.3, JDK 1.7.0_04-ea
>            Reporter: David Drake
>            Priority: Minor
>
> h4. Description
> If a single test is specified from using CLI parameters, but the test does not match the <includes> pattern for failsafe, then the test will not run.  This is different from the behavior for the surefire plugin, which will run any test specified using CLI parameters.  If the test does match the <includes> pattern for failsafe, then it will run.
> h4. Reproduction steps
> # Create a project with a single test named "Sample.java".
> # Add the following block to the failsafe configuration:
> {code:xml} 
> <includes> 
>   <include>**/Sample.java</include>
> </includes> 
> {code} 
> # Run "mvn clean verify -Dit.test=Sample" from the command line (and verify that test runs).
> # Remove the <includes> block shown above from the pom.
> # Run "mvn clean verify -Dit.test=Sample" from the command line.
> h4. Expected results
> Sample test is run, as before, and no other tests are run.
> h4. Actual results
> No tests are run.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira