I've adapted marcgibbons/django-selenium-docker replacing
unittest
withpytest
with the help ofpytest-django
-
Install
docker
-
Launch selenium & django
docker-compose up
-
Open
localhost:7900
in your browser to viewSelenium
in action. Password issecret
selenium/standalone-chrome
usesNoVNC
to hook into the runningselenium
browser -
Hook in to the running Django container and run the tests
docker exec django bash pytest