[jbosscache-commits] JBoss Cache SVN: r4558 - core/trunk.

jbosscache-commits at lists.jboss.org jbosscache-commits at lists.jboss.org
Mon Oct 8 08:25:56 EDT 2007


Author: manik.surtani at jboss.com
Date: 2007-10-08 08:25:56 -0400 (Mon, 08 Oct 2007)
New Revision: 4558

Modified:
   core/trunk/README-Maven.txt
Log:
Updated test documentation

Modified: core/trunk/README-Maven.txt
===================================================================
--- core/trunk/README-Maven.txt	2007-10-08 12:05:14 UTC (rev 4557)
+++ core/trunk/README-Maven.txt	2007-10-08 12:25:56 UTC (rev 4558)
@@ -110,32 +110,42 @@
 ------------------------------
 The default run executes all tests in the functional group. To just run the tests with txt and xml output the command is:
 
-mvn test
+   mvn test
 
 Alternatively, you can execute the tests AND generate a report with:
 
-mvn surefire-report:report
+   mvn surefire-report:report
 
 If you already have ran a test cycle, and you want to generate a report off the current reports, then you use the report-only goal, ike so:
 
-mvn surefire-report:report-only
+   mvn surefire-report:report-only
 
 Executing different groups
 --------------------------
 A group can be executed (using the default configuration) by simply using the groups property like so:
 
-mvn -Dgroups=jgroups surefire-report:report
+   mvn -Dgroups=jgroups test
 
 Mutiple groups can also be executed, although if a test is in more than of the selected groups, it is executed only once:
 
-mvn -Dgroups=jgroups,transaction surefire-report:report
+   mvn -Dgroups=jgroups,transaction test
 
 Executing a single test
 -----------------------
 A single test can be executed using the test property. The value is the short name (not the fully qualified package name) of the test.
 
-mvn -Dtest=FqnTest
+   mvn -Dtest=FqnTest test
 
+Alternatively, if there is more than one test with a given classname in your test suite, you could provide the path to the test.
+
+   mvn -Dtest=org/jboss/cache/multiplexer/SyncReplTxTest test
+
+Executing all tests in a given package
+--------------------------------------
+This can be achieved by passing in the package name with a wildcard to the test parameter.
+
+   mvn -Dtest=org/jboss/cache/multiplexer/* test
+
 Skipping the test run
 ---------------------
 It is sometimes desirable to install the jboss cache package in your local repository without performing a full test run. To do this, simply use the maven.test.skip.exec property:




More information about the jbosscache-commits mailing list