-
Download Python 3 https://www.python.org/downloads/
-
Check Python version
python3 --version-
Go to project
-
Create virtual environment named
.venv
python -m venv .venv- Activate virtual environment Windows GitBash:
source .venv/Scripts/activateLinux:
source .venv/bin/activate- Install dependencies
pip install -r requirements.txtExecute Allure Docker Service from this directory
docker-compose up -d allure allure-ui-
Verify if Allure API is working. Go to -> http://localhost:5050/allure-docker-service/latest-report
-
Verify if Allure UI is working. Go to -> http://localhost:5252/allure-docker-service-ui/
Each time you run tests, the Allure report will be updated. Execute tests:
behave -f allure_behave.formatter:AllureFormatter -o ./allure-resultsSee documentation here:
- https://github.com/fescobar/allure-docker-service
- https://github.com/fescobar/allure-docker-service-ui
Freeze dependencies when you update some of them
pip freeze > requirements.txthttps://blog.miguelgrinberg.com/post/the-package-dependency-blues