-
Copy
.env.dist
to.env
-
Change:
TEST_BASEURL
to your test target URLDEV_ENV_MODE
tolocal
- other ENVs related to your configuration
-
Install deps
pip install -r requirements.txt
-
Run tests:
pytest -vv -s %test_name%
*replace
%test_name%
with path to tests, like:tests/test_main_page.py
-
Copy
.env.dist
to.env
-
Change:
TEST_BASEURL
to your test target URLDEV_ENV_MODE
toremote
SELENIUM_HUB_URL
to HUB Docker container name- other ENVs related to your configuration
-
Install Docker
-
Prepare and run containers:
make up
to start the containers
Also you can update base containers by:make pull
-
Run tests:
docker compose -f dev.docker-compose.yml exec -iT pytest pytest -vv -s %test_name%
*replace
%test_name%
with path to tests, like:tests/test_main_page.py
-
After all things are done call:
make down
to stop the containers