maven-surefire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From krosenv...@apache.org
Subject svn commit: r1061478 - /maven/surefire/trunk/maven-surefire-plugin/src/site/apt/examples/skipping-test.apt.vm
Date Thu, 20 Jan 2011 19:50:01 GMT
Author: krosenvold
Date: Thu Jan 20 19:50:01 2011
New Revision: 1061478

URL: http://svn.apache.org/viewvc?rev=1061478&view=rev
Log:
[SUREFIRE-682/319] Documentation update about inverting boolean values

Modified:
    maven/surefire/trunk/maven-surefire-plugin/src/site/apt/examples/skipping-test.apt.vm

Modified: maven/surefire/trunk/maven-surefire-plugin/src/site/apt/examples/skipping-test.apt.vm
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/maven-surefire-plugin/src/site/apt/examples/skipping-test.apt.vm?rev=1061478&r1=1061477&r2=1061478&view=diff
==============================================================================
--- maven/surefire/trunk/maven-surefire-plugin/src/site/apt/examples/skipping-test.apt.vm
(original)
+++ maven/surefire/trunk/maven-surefire-plugin/src/site/apt/examples/skipping-test.apt.vm
Thu Jan 20 19:50:01 2011
@@ -43,4 +43,36 @@ mvn install -DskipTests
 
 +---+
 mvn install -Dmaven.test.skip=true
-+---+
\ No newline at end of file
++---+
+
+Skipping by default
+
+   If you want to skip tests by default but want the ability to re-enable tests from the
+   command line, you need to go via a properties section in the pom:
+
++---+
+<properties>
+   <skipTests>true</skipTests>
+</properties>
+
+<build>
+   <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-surefire-plugin</artifactId>
+        <version>${project.version}</version>
+        <configuration>
+          <skipTests>${skipTests}</skipTests>
+        </configuration>
+  </plugin>
+</plugins>
+</build>
++---+
+
+   This will allow you to run with tests disabled by default and to run them with this command:
+
++---+
+mvn install -DskipTests=false
++---+
+
+   The same can be done with the "skip" parameter and other booleans on the plugin.



Mime
View raw message