Skip to content

Commit

Permalink
Update README.asciidoc
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Sep 24, 2014
1 parent c12de1d commit ac171cb
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions README.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Setting up an Arquillian profile
Arquillian supports testing in multiple containers. This is done by using a Maven profile for each container. This makes it possible to have multiple containers configured side-by-side too.
To add a new profile you use the arquillian setup command:

arquillian setup
arquillian-setup

This command will prompt which container to use. Remember that you can just re-run the arquillian setup command to install an additional container profile.
For managed containers it might make sense to automatically download & install the container during the build to make installation on a build server more easy. This is only supported for AS7 at this moment.
Expand All @@ -18,25 +18,6 @@ Writing Arquillian tests is trivial, and is documented well: https://docs.jboss.
Forge can help you get started however.
arquillian create-test --class demo.CoolBean.java
arquillian-create-test --value demo.CoolBean.java
Of course you can use the TAB key to navigate to the class that you want to test.
Exporting tests
================
Arquillian uses the Shrinkwrap API to create micro deployments. A micro deployment is an actual package (e.g. war file). In some cases it's convenient to access those packages directly. You can do this by exporting a Deployment.

First navigate to the test class that you want to export, then use the arquillian export command to create the jar/war file.

cd src/test/java/demo/CoolBeanTest.java
arquillian export

Configuring arquillian.xml
================
Containers can be configured in arquillian.xml (hostnames, ports etc.). Forge can help you do so.
Simply type:
arquillian configure-container --profile [maven-profile-id]
Forge will list all possible configuration options for that specific container. All you have to do is set a value.

0 comments on commit ac171cb

Please sign in to comment.