With help from: https://github.com/marcgibbons/django-selenium-docker
- Docker
- Docker-compose
- VNC Viewer (optional for debugging)
$ docker-compose build
$ cp .env-example .env
-
Start the selenium container:
$ docker-compose start selenium
-
Open VNC Viewer and connect to
localhost:5900
. Password issecret
-
Run the tests
$ docker-compose run django
-
No on you can integrations tests with:
$ python manage.py test --exclude-tag=selenium