[weld-commits] Weld SVN: r6609 - archetypes/trunk/javaee6-webapp-src.

weld-commits at lists.jboss.org weld-commits at lists.jboss.org
Sat Jul 10 01:49:05 EDT 2010


Author: dan.j.allen
Date: 2010-07-10 01:49:04 -0400 (Sat, 10 Jul 2010)
New Revision: 6609

Modified:
   archetypes/trunk/javaee6-webapp-src/readme.txt
Log:
docs for executing Arquillian tests


Modified: archetypes/trunk/javaee6-webapp-src/readme.txt
===================================================================
--- archetypes/trunk/javaee6-webapp-src/readme.txt	2010-07-09 06:13:14 UTC (rev 6608)
+++ archetypes/trunk/javaee6-webapp-src/readme.txt	2010-07-10 05:49:04 UTC (rev 6609)
@@ -95,11 +95,36 @@
   asadmin start-database
   asadmin start-domain domain1
 
- Now you can either deploy the target/jboss-javaee6-webapp-src.war through the web-based
- GlassFish admininstration console, or you can again use asadmin:
+ Now you can either deploy the target/jboss-javaee6-webapp-src.war through the
+ web-based GlassFish admininstration console, or you can again use asadmin:
 
   asadmin /path/to/project/target/jboss-javaee6-webapp-src.war
 
+ Running the Arquillian tests
+ ============================
+
+ By default, tests are configured to be skipped. The reason is that the sample
+ test is an Arquillian test, which requires the use of a container. You can
+ activate this test by selecting one of the two container configurations
+ provided, JBoss AS 6 (remote) or GlassFish 3 (embedded).
+
+ To run the test in GlassFish Embedded, simply run the test goal with the
+ following profile activated:
+
+  mvn clean test -Pglassfish-embedded-3
+
+ (The clean goal is only required when you switch between containers)
+
+ To run the test in JBoss AS 6, first start a JBoss AS 6 instance. Then, run the
+ test goal with the following profile activated:
+
+  mvn clean test -Pjbossas-remote-6
+
+ Consult the Arquillian reference documentation to register profiles for any
+ supported container.
+
+ http://docs.jboss.org/arquillian/reference/latest/en-US/html/containers.html#d0e678
+
  Importing the project into an IDE
  =================================
 



More information about the weld-commits mailing list