You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by aldana <al...@gmx.de> on 2009/04/28 17:09:15 UTC

Easy way to switch skipTests flag for integration-test phase

Hi,

by default my integration tests should not be run implicitly, so I set
<skip>true</skip>. Is there a way to tell surefire plugin to switch the skip
test flag for the integration-test phase by passing a command-line? Maybe by
passing the execution-id? 

I know it can be done by profiles, but I would like to avoid profiles.

Here the standard-configruation:
<execution>
   <id>integration-tests</id>
   <phase>integration-test</phase>
   <configuration>
   <skip>true</skip>
     <includes>
       <include>**/itest/**/*Test.java</include>
     </includes>
   </configuration>
   <goals>
     <goal>test</goal>
   </goals>
</execution>

thanks.

-----
manuel aldana
aldana((at))gmx.de
software-engineering blog: http://www.aldana-online.de
-- 
View this message in context: http://www.nabble.com/Easy-way-to-switch-skipTests-flag-for-integration-test-phase-tp23279114p23279114.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Easy way to switch skipTests flag for integration-test phase

Posted by aldana <al...@gmx.de>.
Oh.... that sounds simple and good :)



Stephen Connolly-2 wrote:
> 
> define a property with value true. use that property as the value of skip,
> then the CLI can override the property value
> 
> 2009/4/28 aldana <al...@gmx.de>
> 
>>
>> Hi,
>>
>> by default my integration tests should not be run implicitly, so I set
>> <skip>true</skip>. Is there a way to tell surefire plugin to switch the
>> skip
>> test flag for the integration-test phase by passing a command-line? Maybe
>> by
>> passing the execution-id?
>>
>> I know it can be done by profiles, but I would like to avoid profiles.
>>
>> Here the standard-configruation:
>> <execution>
>>   <id>integration-tests</id>
>>   <phase>integration-test</phase>
>>   <configuration>
>>   <skip>true</skip>
>>     <includes>
>>       <include>**/itest/**/*Test.java</include>
>>     </includes>
>>   </configuration>
>>   <goals>
>>     <goal>test</goal>
>>   </goals>
>> </execution>
>>
>> thanks.
>>
>> -----
>> manuel aldana
>> aldana((at))gmx.de
>> software-engineering blog: http://www.aldana-online.de
>> --
>> View this message in context:
>> http://www.nabble.com/Easy-way-to-switch-skipTests-flag-for-integration-test-phase-tp23279114p23279114.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
> 
> 


-----
manuel aldana
aldana((at))gmx.de
software-engineering blog: http://www.aldana-online.de
-- 
View this message in context: http://www.nabble.com/Easy-way-to-switch-skipTests-flag-for-integration-test-phase-tp23279114p23286651.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Easy way to switch skipTests flag for integration-test phase

Posted by Stephen Connolly <st...@gmail.com>.
define a property with value true. use that property as the value of skip,
then the CLI can override the property value

2009/4/28 aldana <al...@gmx.de>

>
> Hi,
>
> by default my integration tests should not be run implicitly, so I set
> <skip>true</skip>. Is there a way to tell surefire plugin to switch the
> skip
> test flag for the integration-test phase by passing a command-line? Maybe
> by
> passing the execution-id?
>
> I know it can be done by profiles, but I would like to avoid profiles.
>
> Here the standard-configruation:
> <execution>
>   <id>integration-tests</id>
>   <phase>integration-test</phase>
>   <configuration>
>   <skip>true</skip>
>     <includes>
>       <include>**/itest/**/*Test.java</include>
>     </includes>
>   </configuration>
>   <goals>
>     <goal>test</goal>
>   </goals>
> </execution>
>
> thanks.
>
> -----
> manuel aldana
> aldana((at))gmx.de
> software-engineering blog: http://www.aldana-online.de
> --
> View this message in context:
> http://www.nabble.com/Easy-way-to-switch-skipTests-flag-for-integration-test-phase-tp23279114p23279114.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>