VIVIDUS Docker images are built and pushed to Docker Hub. The image includes Java runtime, VIVIDUS core and all VIVIDUS plugins, so it’s all-in-one solution. The Docker image enables easier extension of CI/CD pipelines with VIVIDUS-based tests. The appliance is not limited to CI/CD and the image can be used to run tests locally or anywhere else, however it could be less convenient in comparison with regular Gradle task or IDE.
Assuming there is a project containing VIVIDUS-based tests (e.g. VIVIDUS Starter)
Go to the project root directory
Create a new directory or choose any existing directory at any location, this directory is going to be used to store the test logs and the report.
Run the tests in the container
The version of VIVIDUS used in the project (see
build.gradlefile) and the version of the Docker image must be the same.
docker run --rm --mount source="$(pwd)/src/main/resources",target=/vividus/resources,type=bind --mount source="$(pwd)/results",target=/vividus/output,type=bind vividus/vividus:0.4.8
Wait for the tests completion
Find the test execution artifacts in the results folder chosen at step 2.
|The Docker image includes only Java runtime and doesn’t contain any browsers, so if it’s required to run web UI tests via approach described above, it’s recommended to use solution based on Selenium Grid.|