Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 568 Bytes

README.md

File metadata and controls

35 lines (22 loc) · 568 Bytes

Example: Django Selenium Tests with Docker

Requirements

  • Docker & Docker compose

Installation

docker compose build

Start Selenium

docker compose up -d selenium

Connect to browser using noVNC

On your host, open http://localhost:7900 and click "Connect".

Run tests

docker compose run --rm --use-aliases django pytest

You can interact with the browser using breakpoints.

Example: drop into pdb at the beginning of each test with --trace.

docker compose run --rm --use-aliases django pytest --trace