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

jbosscache-commits at lists.jboss.org jbosscache-commits at lists.jboss.org
Wed May 14 08:06:02 EDT 2008


Author: manik.surtani at jboss.com
Date: 2008-05-14 08:06:01 -0400 (Wed, 14 May 2008)
New Revision: 5843

Modified:
   core/trunk/README-Maven.txt
   core/trunk/pom.xml
Log:
Updated maven tests

Modified: core/trunk/README-Maven.txt
===================================================================
--- core/trunk/README-Maven.txt	2008-05-14 11:49:11 UTC (rev 5842)
+++ core/trunk/README-Maven.txt	2008-05-14 12:06:01 UTC (rev 5843)
@@ -116,6 +116,7 @@
 
 2.1. Current Groups
 -------------------
+* unit - Unit tests using stubs to isolate and test each major class in JBoss Cache.  This is the default group run if no test group is specified.
 * functional - Tests which test the general functionality of JBoss Cache
 * jgroups - Tests which need to send data on a JGroups Channel
 * transaction - Tests which use a transaction manager
@@ -143,31 +144,27 @@
 
 2.3. Executing different groups
 -------------------------------
-A group can be executed (using the default configuration) by simply using the groups property like so:
+A group can be executed (using the default configuration) by simply using the appropriate profile, like so:
 
-   $ mvn -Dgroups=jgroups test
+   $ mvn -P test-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 test
-
 2.4. 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 test
+   $ mvn -P test-XXX -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
+   $ mvn -P test-XXX -Dtest=org/jboss/cache/multiplexer/SyncReplTxTest test
 
 2.5. 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
+   $ mvn -P test-XXX -Dtest=org/jboss/cache/multiplexer/* test
 
 2.6. Skipping the test run
 --------------------------

Modified: core/trunk/pom.xml
===================================================================
--- core/trunk/pom.xml	2008-05-14 11:49:11 UTC (rev 5842)
+++ core/trunk/pom.xml	2008-05-14 12:06:01 UTC (rev 5843)
@@ -359,6 +359,41 @@
          </build>
       </profile>
       <profile>
+         <id>test-functional</id>
+         <properties>
+            <defaultTestGroup>functional</defaultTestGroup>
+         </properties>
+      </profile>
+
+      <profile>
+         <id>test-unit</id>
+         <properties>
+            <defaultTestGroup>unit</defaultTestGroup>
+         </properties>
+      </profile>
+
+      <profile>
+         <id>test-jgroups</id>
+         <properties>
+            <defaultTestGroup>jgroups</defaultTestGroup>
+         </properties>
+      </profile>
+
+      <profile>
+         <id>test-transaction</id>
+         <properties>
+            <defaultTestGroup>transaction</defaultTestGroup>
+         </properties>
+      </profile>
+
+      <profile>
+         <id>test-integration</id>
+         <properties>
+            <defaultTestGroup>integration</defaultTestGroup>
+         </properties>
+      </profile>
+
+      <profile>
          <id>JBossAS</id>
          <activation>
             <activeByDefault>false</activeByDefault>




More information about the jbosscache-commits mailing list