-
create python virtual enviroment:
python -m venv venvorpython3 -m venv venvdepending on your machine. -
activate virtual enviroment:
source venv/bin/activateinstall pip:sudo apt install python3-pip -
install dependencies:
pip install -r requirements.txt -
run the following to install playwright dependencies
playwright installplaywright install-deps
See how to install here: https://code.visualstudio.com/docs/devcontainers/containers
once you are in your devcontainers you can follow steps above.
pytest tests/test_example.py --headed --slowmo 2000
or multiple with html report
pytest tests/test_example.py --headed --slowmo 2000 --browser webkit --browser firefox --browser chromium --alluredir allure-results
If you use the devcontainer provided in this project allure reports can be installed with brew install allure
to view results run allure serve allure-results

