Skip to content

Latest commit

 

History

History
 
 

allure-docker-python-pytest-example

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

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

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

See documentation here: https://github.com/fescobar/allure-docker-service

DEVELOPER USAGE

Freeze dependencies when you update some of them

pip freeze > requirements.txt

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