maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vanyatka <ibalas...@gmail.com>
Subject Re: Easy way to disable surefire during failsafe?
Date Mon, 31 May 2010 11:18:44 GMT

Thanks, Stephen 

Custom variable to skip surefire is fine for now.


Stephen Connolly-2 wrote:
> 
> file a JIRA for this enhancement
> 
> until then the solution is to define a property in your pom with value
> false
> 
> <project>
> ...
> <properties>
>   <skipUnitTests>false</skipUnitTests>
> </properties>
> ...
> <build>
> ...
> <plugins>
> ...
> <plugin>
>   <artifactId>maven-surefire-plugin</artifactId>
>   <configuration>
>     <skipExec>${skipUnitTests}</skipExec> <!-- use the legacy parameter
so
> that -DskipTests will still skip tests -->
>   </configuration>
> </plugin>
> </plugins>
> </build>
> </project>
> 
> On 29 May 2010 11:24, vanyatka <ibalashov@gmail.com> wrote:
> 
>>
>> Hey,
>>
>> Could anyone suggest a command line switch that would disable surefire
>> tests, but kept running failsafe?
>> Currently <skipTests>true</skipTests> in the surefire plugin pom seems
>> like
>> the only option.
>>
>> There should be an easier way :-)
>>
>> Thanks,
>>
>> --
>> View this message in context:
>> http://old.nabble.com/Easy-way-to-disable-surefire-during-failsafe--tp28715161p28715161.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
>>
>>
> 
> 

-- 
View this message in context: http://old.nabble.com/Easy-way-to-disable-surefire-during-failsafe--tp28715161p28729919.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


Mime
View raw message