Skip to content

rdmolony/django-selenium-pytest-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example: Django Selenium Tests on Pytest with Docker

I've adapted marcgibbons/django-selenium-docker replacing unittest with pytest with the help of pytest-django

  1. Install docker

  2. Launch selenium & django

    docker-compose up
  3. Open localhost:7900 in your browser to view Selenium in action. Password is secret

    selenium/standalone-chrome uses NoVNC to hook into the running selenium browser

  4. Hook in to the running Django container and run the tests

    docker exec django bash
    pytest

About

Example of Django Selenium Pytest testing with Docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.9%
  • Dockerfile 2.1%