mirror of https://github.com/apache/maven.git
[MNG-562] Implement -Dmaven.test.skip=true
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@209755 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d6f5f354e3
commit
267dcf5d02
|
@ -44,6 +44,11 @@ import java.util.StringTokenizer;
|
|||
public class SurefirePlugin
|
||||
extends AbstractMojo
|
||||
{
|
||||
/**
|
||||
* Set this to 'true' to bypass unit tests entirely. Its use is NOT RECOMMENDED, but quite convenient on occasion.
|
||||
* @parameter expression=${maven.test.skip}"
|
||||
*/
|
||||
private boolean skip;
|
||||
|
||||
/**
|
||||
* @parameter expression="${basedir}"
|
||||
|
@ -124,6 +129,13 @@ public class SurefirePlugin
|
|||
public void execute()
|
||||
throws MojoExecutionException
|
||||
{
|
||||
if ( skip )
|
||||
{
|
||||
getLog().info( "Tests are skipped." );
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
// Setup the surefire booter
|
||||
// ----------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue