Create a Virtual Environment python -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate` Install dependencies pip install -r requirements.txt Run tests with html report pytest --html=report.html --self-contained-html