You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-4Lines changed: 17 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,15 +4,15 @@ This workspace consists of Java EE 7 Samples and unit tests. They are categorize
4
4
5
5
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.
6
6
7
-
## How to run? ##
7
+
## How to run? ##
8
8
9
9
Samples are tested on Wildfly and GlassFish using the Arquillian ecosystem.
10
10
11
11
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
12
12
13
13
Only one container profile and one profile for browser can be active at a given time otherwise there will be dependency conflicts.
14
14
15
-
There are 8 available container profiles, for 5 different servers:
15
+
There are 9 available container profiles, for 5 different servers:
16
16
17
17
*``wildfly-managed-arquillian``
18
18
@@ -99,6 +99,12 @@ There are 8 available container profiles, for 5 different servers:
99
99
<groupname="architect"/>
100
100
</basicRegistry>
101
101
```
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.
102
108
103
109
* ``weblogic-remote-arquillian``
104
110
@@ -125,7 +131,7 @@ Some of the containers allow you to override the version used
125
131
126
132
* `-Dglassfish.version=4.1`
127
133
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.
129
135
130
136
Similarly, there are 6 profiles to choose a browser to test on:
131
137
@@ -156,14 +162,21 @@ Similarly, there are 6 profiles to choose a browser to test on:
156
162
To run tests on headless browser PhantomJS. If you do not specify the path of phantomjs binary via
157
163
``-Dphantomjs.binary.path`` property, it will be downloaded automatically.
158
164
159
-
To run them in the console do:
165
+
**To run them in the console do**:
160
166
161
167
1. In the terminal, ``mvn -Pwildfly-managed-arquillian,browser-firefox test`` at the top-level directory to start the tests
162
168
163
169
When developing and runing them from IDE, remember to activate the profile before running the test.
164
170
165
171
To learn more about Arquillian please refer to the [Arquillian Guides](http://arquillian.org/guides/)
166
172
173
+
**To run only a subset of the tests do at the top-level directory**:
1. Run tests against desired server, e.g.: ``mvn clean test -P liberty-embedded-arquillian``
178
+
179
+
167
180
## How to contribute ##
168
181
169
182
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