Nuclos integration tests: IntelliJ, Docker, Selenium, standalone-chrome, groovy, /etc/hosts, VM parameters, JUnit.

globe with meridians Language: Deutsch · English

hammer and wrench Running the integration tests with IntelliJ (and Docker)

Run integration tests in IntelliJ – server tests (Groovy) and web client tests with Selenium/Docker.

Auf dieser Seite

Run server and web client integration tests in IntelliJ – the web client tests use a Selenium container via Docker.

Setup

Server integration tests

Start a *.groovy file under server (or the whole directory) via Run/Debug and wait for the results.

Web client integration tests

docker run -d -p 4444:4444 -p 5900:5900 selenium/standalone-chrome-debug

Add the required hosts to /etc/hosts (Windows: %windir%\system32\drivers\etc\hosts), start the web client and set the VM parameters in IntelliJ (Edit Configurations → JUnit → Edit configuration templates…).

Without a set selenium.server, the tests start their own Docker container that is deleted afterwards. Optional parameters: nuclos.webclient.screenshots, nuclos.failing.videos.path.

Related pages

gear Web client tests


E2E.

Öffnen →

gear Setting up Docker


Docker.

Öffnen →