Framework Mode - Coverage in CI pipelines
Folder Structure
project-root/ ├── tests/ │ ├── test_example.py │ └── __init__.py ├── src/ │ └── app_code.py ├── .github/ │ └── workflows/ │ └── ci.yml ├── pytest.ini ├── requirements.txt └── README.md
project-root/ ├── tests/ │ ├── test_example.py │ └── __init__.py ├── src/ │ └── app_code.py ├── .github/ │ └── workflows/ │ └── ci.yml ├── pytest.ini ├── requirements.txt └── README.md
tests/ folder, contains pytest test files like test_example.py.src/ folder.pytest.ini for pytest settings and coverage options..github/workflows/ci.yml to run tests and collect coverage.tests/ or separate utils/ folder if needed.[pytest] section with addopts = --cov=src --cov-report=xml to generate coverage XML report.ci.yml, install dependencies, run pytest with coverage, and upload coverage reports..coverage and reports in workspace for analysis.Where in this folder structure would you add a new pytest fixture to share setup code across tests?