A docker container for easily running Geb-based Spock-specs in a headless Chrome environment.
docker build -t netzgut/gsdr:latest
You need to map 3 locations into the container:
Container-Location | Description |
---|---|
/runner/src/test/groovy |
Contains the tests |
/runner/build/reports |
Output folder for the test reports |
/runner/build/testResults |
Output folder for the test results |
To configure the base url and additional dependencies needed by the specs you should map a runner-settings.gradle
file
to /runner/runner-settings.gradle
. See runner/runner-settings.gradle for an example.
docker run \
-v <path to specs>:/runner/src/test/groovy \
-v <path to specs>:/runner/src/test/groovy \
-v <path for output>/reports:/runner/build/reports \
-v <path for output>/testResults:/runner/build/testResults \
netzgut/gsdr:latest
MIT. See LICENSE.