chore: upgrade pytest-html 3.x -> 4.x, fix pytest.ini
- Upgrade pytest-html 3.2.0 to 4.x (совместима с pytest 9.1) - Убрать пин версии pytest-html==3.2.0 в requirements.txt - Перенести --html флаг из ручного запуска в pytest.ini addopts, чтобы отчёт генерировался автоматически при каждом запуске pytest - Убрать html_report_dir из pytest.ini (не поддерживается, вызывал PytestConfigWarning: Unknown config option) - Исправить опечатку в маркере vetstation - Добавить html-report/ и report.html в .gitignore
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@ -174,3 +174,6 @@ cython_debug/
|
|||||||
# PyPI configuration file
|
# PyPI configuration file
|
||||||
.pypirc
|
.pypirc
|
||||||
|
|
||||||
|
# Test reports
|
||||||
|
html-report/
|
||||||
|
report.html
|
||||||
|
|||||||
@ -1,10 +1,9 @@
|
|||||||
[pytest]
|
[pytest]
|
||||||
addopts = --browser chromium --headed --slowmo 1000
|
addopts = --browser chromium --headed --slowmo 1000 --html=html-report/report.html --self-contained-html
|
||||||
html_report_dir = html-report
|
|
||||||
testpaths = tests
|
testpaths = tests
|
||||||
markers =
|
markers =
|
||||||
vetdept: тесты для роли Управление ветеринарии
|
vetdept: тесты для роли Управление ветеринарии
|
||||||
vetstation: тесты для роли Ветеринарная станци
|
vetstation: тесты для роли Ветеринарная станция
|
||||||
prefecture: тесты для роли Администрация
|
prefecture: тесты для роли Администрация
|
||||||
contractor_admin: тесты для роли Администратор организации отлова
|
contractor_admin: тесты для роли Администратор организации отлова
|
||||||
smoke: критически важные тесты для быстрого прогона
|
smoke: критически важные тесты для быстрого прогона
|
||||||
@ -1,6 +1,6 @@
|
|||||||
playwright
|
playwright
|
||||||
pytest
|
pytest
|
||||||
pytest-playwright
|
pytest-playwright
|
||||||
pytest-xdist
|
pytest-xdist
|
||||||
pytest-html==3.2.0
|
pytest-html
|
||||||
python-dotenv
|
python-dotenv
|
||||||
Reference in New Issue
Block a user