Skip to content

Commit 9efdf0e

Browse files
committed
Updated readme with Liberty embedded profile and how to run single tests
1 parent 5380ed4 commit 9efdf0e

1 file changed

Lines changed: 17 additions & 4 deletions

File tree

README.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ This workspace consists of Java EE 7 Samples and unit tests. They are categorize
44

55
Some samples/tests have documentation otherwise read the code. The [Java EE 7 Essentials](http://www.amazon.com/Java-EE-Essentials-Arun-Gupta/dp/1449370179/) book refer to most these samples and provide an explanation. Feel free to add docs and send a pull request.
66

7-
## How to run ? ##
7+
## How to run? ##
88

99
Samples are tested on Wildfly and GlassFish using the Arquillian ecosystem.
1010

1111
A brief instruction how to clone, build, import and run the samples on your local machine @radcortez provides in this sample video https://www.youtube.com/watch?v=BB4b-Yz9cF0
1212

1313
Only one container profile and one profile for browser can be active at a given time otherwise there will be dependency conflicts.
1414

15-
There are 8 available container profiles, for 5 different servers:
15+
There are 9 available container profiles, for 5 different servers:
1616

1717
* ``wildfly-managed-arquillian``
1818

@@ -99,6 +99,12 @@ There are 8 available container profiles, for 5 different servers:
9999
<group name="architect"/>
100100
</basicRegistry>
101101
```
102+
103+
* ``liberty-embedded-arquillian``
104+
105+
This profile will download and install a Liberty server and start up the server per sample.
106+
Useful for CI servers. Note, this is not a real embedded server, but a regular server. It's now
107+
called "embedded" because no separate install is needed as it's downloaded automatically.
102108

103109
* ``weblogic-remote-arquillian``
104110

@@ -125,7 +131,7 @@ Some of the containers allow you to override the version used
125131

126132
* `-Dglassfish.version=4.1`
127133

128-
This will change the version from 4.0 to 4.1 for GlassFish testing purposes.
134+
This will change the version from 4.1.1 to 4.1 for GlassFish testing purposes.
129135

130136
Similarly, there are 6 profiles to choose a browser to test on:
131137

@@ -156,14 +162,21 @@ Similarly, there are 6 profiles to choose a browser to test on:
156162
To run tests on headless browser PhantomJS. If you do not specify the path of phantomjs binary via
157163
``-Dphantomjs.binary.path`` property, it will be downloaded automatically.
158164

159-
To run them in the console do:
165+
**To run them in the console do**:
160166

161167
1. In the terminal, ``mvn -Pwildfly-managed-arquillian,browser-firefox test`` at the top-level directory to start the tests
162168

163169
When developing and runing them from IDE, remember to activate the profile before running the test.
164170

165171
To learn more about Arquillian please refer to the [Arquillian Guides](http://arquillian.org/guides/)
166172

173+
**To run only a subset of the tests do at the top-level directory**:
174+
175+
1. Install top level dependencies: ``mvn clean install -pl "test-utils,util" -am``
176+
1. cd into desired module, e.g.: ``cd jaspic``
177+
1. Run tests against desired server, e.g.: ``mvn clean test -P liberty-embedded-arquillian``
178+
179+
167180
## How to contribute ##
168181

169182
With your help we can improve this set of samples, learn from each other and grow the community full of passionate people who care about the technology, innovation and code quality. Every contribution matters!

0 commit comments

Comments
 (0)