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: e2e/README.md
+19-2Lines changed: 19 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# End-to-end tests
2
2
3
-
This directory contains end-to-end tests for the project. The suite now boots the RDF4J Server and Workbench using a Spring Boot wrapper with an embedded Tomcat instance, so Docker is no longer required.
3
+
This directory contains end-to-end tests for the project. The suite can run against either the Spring Boot wrapper with embedded Tomcat or the Docker image that deploys the regular WAR files to Tomcat.
4
4
5
5
The tests are written using Microsoft Playwright and interact with the server and workbench in a real browser.
6
6
@@ -11,7 +11,24 @@ Requirements:
11
11
- maven
12
12
- npm
13
13
- npx
14
+
- docker (for `docker-tomcat`)
14
15
15
-
The tests can be run using the `run.sh` script. The script builds the Spring Boot runner, launches it in the background, waits until the HTTP endpoints are reachable, and then executes the Playwright test suite.
16
+
The tests can be run using the `run.sh` script. The script builds the selected runtime, waits until the HTTP endpoints are reachable, and then executes the Playwright test suite.
17
+
18
+
Run against the Spring Boot implementation:
19
+
20
+
```bash
21
+
./run.sh spring-boot
22
+
```
23
+
24
+
Run against the Docker/Tomcat image:
25
+
26
+
```bash
27
+
./run.sh docker-tomcat
28
+
```
29
+
30
+
The default runtime is `spring-boot`, so `./run.sh` keeps the original local behavior.
31
+
32
+
If Playwright browsers are already installed locally, set `E2E_SKIP_PLAYWRIGHT_INSTALL=true` to skip the browser installer.
16
33
17
34
To run the tests interactively use `npx playwright test --ui`
0 commit comments