Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

PYTHON BEHAVE DEMO PROJECT USING ALLURE

INSTALLATION

python3 --version
  • Go to project

  • Create virtual environment named .venv

python -m venv .venv
  • Activate virtual environment Windows GitBash:
source .venv/Scripts/activate

Linux:

source .venv/bin/activate
  • Install dependencies
pip 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:

behave -f allure_behave.formatter:AllureFormatter -o ./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