Skip to content

Commit

Permalink
Update readme, rename profile to jboss6
Browse files Browse the repository at this point in the history
  • Loading branch information
pmuir committed Aug 24, 2010
1 parent 2cf09ab commit 5b0cd74
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion examples/jsf/numberguess/pom.xml
Expand Up @@ -53,7 +53,7 @@

<profiles>
<profile>
<id>jboss5</id>
<id>jboss6</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
Expand Down
30 changes: 15 additions & 15 deletions examples/readme.txt
Expand Up @@ -15,31 +15,31 @@ The examples and RI are explained in detail in the reference guide, including
how to deploy the examples to JBoss 6.0.x, and how to deploy the examples to Tomcat


***** How to run functional tests on JSF examples *****
== Running the functional tests on the JSF examples

Functional tests can be run separately on each of JSF examples or as a whole testsuite. JBoss AS 6
has to be installed and running before it's possible to run functional tests.
The functional tests can be run on an individual JSF examples or on all examples. JBoss AS 6
must to be installed and running to run the functional tests.

When running the whole testsuite, use the following command in the examples directory:
When running the testsuite against all the examples, use the following command in the examples
directory:

mvn -U -Pftest-jboss-remote-60,jboss5 clean verify
mvn -Pftest-jboss-remote-60,jboss6 clean verify

When running separate ftests, use the following command in respective example's folder under jsf
directory (except numberguess, explained below):
When running the functional tests on an individual example, use the following command in
the example's directory (except for jsf/numberguess as explained below):

mvn -U -Pftest-jboss-remote-60 clean verify
mvn -U -Pftest-jboss-remote-60 clean verify

Numberguess example needs its jboss5 profile to be executed so you have to use the same command as
for the whole testsuite, however, in the Numberguess director:
The jsf/numberguess example needs the jboss6 profile to be active, so, in the jsf/numberguess
directory, run:

mvn -U -Pftest-jboss-remote-60,jboss5 clean verify
mvn -U -Pftest-jboss-remote-60,jboss6 clean verify

The jsf/numberguess example can be also tested in a cluster. Follow these steps:

Numberguess can be aslo tested in a cluster. Follow these steps:
1) start two JBossAS instances (read the guide in NumberGuessClusteringTest.java file under
numberguess/src/ftest folder)
2) set up JBOSS_HOME environment property to point to JBossAS distribution
3) run the following command:

mvn -U -Pjboss6cluster,ftest-jboss-cluster-60 clean verify
-Djboss.master.configuration=${env.JBOSS_HOME}/server/all

mvn -U -Pjboss6cluster,ftest-jboss-cluster-60 clean verify -Djboss.master.configuration=${env.JBOSS_HOME}/server/all

0 comments on commit 5b0cd74

Please sign in to comment.