Skip to content

Latest commit

 

History

History

allure-docker-python-pytest-example

PYTHON PYTEST DEMO PROJECT USING ALLURE

INSTALLATION

python3 --version
  • Go to project
  • Install dependencies
pip3 install -r requirements.txt

USAGE

Execute Allure Docker Service from this directory

docker-compose up -d allure allure-ui

Each time you run tests, the Allure report will be updated. Execute tests:

pytest tests/*.py --alluredir=allure-results

See documentation here:

DEVELOPER USAGE

Freeze dependencies when you update some of them

pip freeze > requirements.txt

https://blog.miguelgrinberg.com/post/the-package-dependency-blues