]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Tox/Makefile: replace test-cov with just test + envvar
authorAarni Koskela <akx@iki.fi>
Thu, 27 Jan 2022 16:31:54 +0000 (18:31 +0200)
committerAarni Koskela <akx@iki.fi>
Thu, 27 Jan 2022 16:38:04 +0000 (18:38 +0200)
.gitignore
Makefile
tox.ini

index 2886dec528b3c6e77c0109045a748bf4f7dfc6bb..b890ef9b0546fcca7a13459f3915cefc8a00a815 100644 (file)
@@ -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
index be687629dd613f4a61a7f8895e100a93243014eb..8b7827c5074bdb8656bcf76a873620d54ed95ead 100644 (file)
--- 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 5cd0a6ebf69acdfad74000ff0b23fd5a3e8dc8d8..a997abc5842b6e0e8a9a524f893465794299b142 100644 (file)
--- 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]