diff options
author | Aarni Koskela <akx@iki.fi> | 2022-01-27 18:31:54 +0200 |
---|---|---|
committer | Aarni Koskela <akx@iki.fi> | 2022-01-27 18:38:04 +0200 |
commit | 95ede2f8f5e44b3d68690442c5a4aee0efaeeff1 (patch) | |
tree | fe8e33c22120a3504ef3bbd276976341f994e72a | |
parent | 7b590638ad9b56df40c1e9262ad8b0c2be80027e (diff) | |
download | babel-95ede2f8f5e44b3d68690442c5a4aee0efaeeff1.tar.gz |
Tox/Makefile: replace test-cov with just test + envvar
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | Makefile | 5 | ||||
-rw-r--r-- | tox.ini | 5 |
3 files changed, 7 insertions, 6 deletions
@@ -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 @@ -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 @@ -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] |