File tree Expand file tree Collapse file tree 3 files changed +22
-5
lines changed
Expand file tree Collapse file tree 3 files changed +22
-5
lines changed Original file line number Diff line number Diff line change 1818 run : |
1919 python -m pip install --upgrade pip
2020 pip install -r requirements.txt
21+ pip install pytest-cov # Agregado para coverage
2122 - name : Install GeckoDriver
2223 run : |
2324 python -m pip install webdriver-manager
5253 with :
5354 name : html-report
5455 path : reports/report.html
56+ - name : Run tests with Coverage
57+ env :
58+ PYTHONPATH : .
59+ run : |
60+ pytest test/ --cov=pages --cov-report=xml:coverage.xml --cov-report=html:htmlcov
61+ - name : Upload Coverage HTML report
62+ uses : actions/upload-artifact@v4
63+ with :
64+ name : coverage-html-report
65+ path : htmlcov/
66+ - name : Upload coverage to Codecov
67+ uses : codecov/codecov-action@v3
68+ with :
69+ file : ./coverage.xml
70+ fail_ci_if_error : true
Original file line number Diff line number Diff line change @@ -3,3 +3,4 @@ pytest==8.4.2
33pytest-html == 4.1.1
44webdriver-manager == 4.0.2
55allure-pytest == 2.15.0
6+ pytest-cov == 7.0.0
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments