1 |
Running headless |
2 |
================ |
3 |
To run the integration tests on a debian/ubuntu machine, install xvfb and firefox |
4 |
|
5 |
sudo apt-get install xvfb firefox |
6 |
|
7 |
From the command line, run |
8 |
|
9 |
mvn -P headless integration-test |
10 |
|
11 |
|
12 |
Adding tests |
13 |
============ |
14 |
For each test case, export it with the |
15 |
|
16 |
org.onehippo.gogreen |
17 |
|
18 |
package name. Add the test to |
19 |
|
20 |
src/test/resources/tests.xml |
21 |
|
22 |
|
23 |
Debugging tests |
24 |
=============== |
25 |
The web applications, tested by selenium, can be run from the command line using |
26 |
|
27 |
mvn -P headless cargo.run |
28 |
|
29 |
The browser that is executing the test can be opened on the users X server as |
30 |
|
31 |
mvn -P debug,headless integration-test |
32 |
|
33 |
|