From: Aarni Koskela Date: Thu, 27 Jan 2022 16:31:54 +0000 (+0200) Subject: Tox/Makefile: replace test-cov with just test + envvar X-Git-Tag: v2.10.0~21^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95ede2f8f5e44b3d68690442c5a4aee0efaeeff1;p=thirdparty%2Fbabel.git Tox/Makefile: replace test-cov with just test + envvar --- diff --git a/.gitignore b/.gitignore index 2886dec5..b890ef9b 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,7 @@ *~ .*cache .DS_Store +.coverage .idea .tox /venv* @@ -18,6 +19,6 @@ dist docs/_build test-env tests/messages/data/project/i18n/en_US +tests/messages/data/project/i18n/fi_BUGGY/LC_MESSAGES/*.mo tests/messages/data/project/i18n/long_messages.pot tests/messages/data/project/i18n/temp* -tests/messages/data/project/i18n/fi_BUGGY/LC_MESSAGES/*.mo diff --git a/Makefile b/Makefile index be687629..8b7827c5 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,5 @@ test: import-cldr - python ${PYTHON_TEST_FLAGS} -m pytest - -test-cov: import-cldr - python ${PYTHON_TEST_FLAGS} -m pytest --cov=babel + python ${PYTHON_TEST_FLAGS} -m pytest ${PYTEST_FLAGS} test-env: virtualenv test-env diff --git a/tox.ini b/tox.ini index 5cd0a6eb..a997abc5 100644 --- a/tox.ini +++ b/tox.ini @@ -11,9 +11,12 @@ deps = backports.zoneinfo;python_version<"3.9" tzdata;sys_platform == 'win32' whitelist_externals = make -commands = make clean-cldr test-cov +commands = make clean-cldr test +setenv = + PYTEST_FLAGS=--cov=babel passenv = BABEL_* + PYTEST_* PYTHON_* [gh-actions]