Run Selenium tests using Firefox and the Gradle
1.4K
Extension of the khozzy/selenium-java-firefox image with Gradle in it.
If you want to run your tests, use the following command:
docker run --rm -it -w /tests \
-v <path to your gradle project>:/tests \
w32blaster/selenium-gradle \
xvfb-daemon-run gradle test
But if you plan to run this command often, I recommend also mount the gradle local repository avoiding to download dependency again and again. Here is the full command:
docker run --rm -it -w /tests \
-v <path to your gradle project>:/tests \
-v /tmp/gradle:/home/firefox/.gradle/caches \
w32blaster/selenium-gradle \
xvfb-daemon-run gradle test
Make sure, that the folder /tmp/gradle has write permissions for your user.
Content type
Image
Digest
Size
579.5 MB
Last updated
almost 10 years ago
docker pull w32blaster/selenium-gradle