mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 18:27:09 +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
|
. venv/bin/activate
|
||||||
CC_SWITCH="--cov --cov-report="
|
CC_SWITCH="--cov --cov-report="
|
||||||
TESTFILES=$(circleci tests glob "tests/**/test_*.py" | circleci tests split --split-by=timings)
|
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
|
script/check_dirty
|
||||||
codecov
|
codecov
|
||||||
|
|
||||||
|
4
tox.ini
4
tox.ini
@ -5,7 +5,7 @@ skip_missing_interpreters = True
|
|||||||
[testenv]
|
[testenv]
|
||||||
basepython = {env:PYTHON3_PATH:python3}
|
basepython = {env:PYTHON3_PATH:python3}
|
||||||
commands =
|
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
|
{toxinidir}/script/check_dirty
|
||||||
deps =
|
deps =
|
||||||
-r{toxinidir}/requirements_test_all.txt
|
-r{toxinidir}/requirements_test_all.txt
|
||||||
@ -13,7 +13,7 @@ deps =
|
|||||||
|
|
||||||
[testenv:cov]
|
[testenv:cov]
|
||||||
commands =
|
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
|
{toxinidir}/script/check_dirty
|
||||||
deps =
|
deps =
|
||||||
-r{toxinidir}/requirements_test_all.txt
|
-r{toxinidir}/requirements_test_all.txt
|
||||||
|
Loading…
x
Reference in New Issue
Block a user