mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 17:27:52 +00:00
Fix pytest durations parameter (#22658)
* Fix durations parameter * Update config.yml
This commit is contained in:
parent
0427154963
commit
b8b3f4e88f
@ -178,7 +178,7 @@ jobs:
|
||||
. venv/bin/activate
|
||||
CC_SWITCH="--cov --cov-report="
|
||||
TESTFILES=$(circleci tests glob "tests/**/test_*.py" | circleci tests split --split-by=timings)
|
||||
pytest --timeout=9 --duration=10 --junitxml=test-reports/homeassistant/results.xml -qq -o junit_family=xunit2 -o junit_suite_name=homeassistant -o console_output_style=count -p no:sugar $CC_SWITCH -- ${TESTFILES}
|
||||
pytest --timeout=9 --durations=10 --junitxml=test-reports/homeassistant/results.xml -qq -o junit_family=xunit2 -o junit_suite_name=homeassistant -o console_output_style=count -p no:sugar $CC_SWITCH -- ${TESTFILES}
|
||||
script/check_dirty
|
||||
codecov
|
||||
|
||||
|
4
tox.ini
4
tox.ini
@ -5,7 +5,7 @@ skip_missing_interpreters = True
|
||||
[testenv]
|
||||
basepython = {env:PYTHON3_PATH:python3}
|
||||
commands =
|
||||
pytest --timeout=9 --duration=10 -qq -o console_output_style=count -p no:sugar {posargs}
|
||||
pytest --timeout=9 --durations=10 -qq -o console_output_style=count -p no:sugar {posargs}
|
||||
{toxinidir}/script/check_dirty
|
||||
deps =
|
||||
-r{toxinidir}/requirements_test_all.txt
|
||||
@ -13,7 +13,7 @@ deps =
|
||||
|
||||
[testenv:cov]
|
||||
commands =
|
||||
pytest --timeout=9 --duration=10 -qq -o console_output_style=count -p no:sugar --cov --cov-report= {posargs}
|
||||
pytest --timeout=9 --durations=10 -qq -o console_output_style=count -p no:sugar --cov --cov-report= {posargs}
|
||||
{toxinidir}/script/check_dirty
|
||||
deps =
|
||||
-r{toxinidir}/requirements_test_all.txt
|
||||
|
Loading…
x
Reference in New Issue
Block a user