summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAarni Koskela <akx@iki.fi>2022-01-27 18:31:54 +0200
committerAarni Koskela <akx@iki.fi>2022-01-27 18:38:04 +0200
commit95ede2f8f5e44b3d68690442c5a4aee0efaeeff1 (patch)
treefe8e33c22120a3504ef3bbd276976341f994e72a
parent7b590638ad9b56df40c1e9262ad8b0c2be80027e (diff)
downloadbabel-95ede2f8f5e44b3d68690442c5a4aee0efaeeff1.tar.gz
Tox/Makefile: replace test-cov with just test + envvar
-rw-r--r--.gitignore3
-rw-r--r--Makefile5
-rw-r--r--tox.ini5
3 files changed, 7 insertions, 6 deletions
diff --git a/.gitignore b/.gitignore
index 2886dec..b890ef9 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 be68762..8b7827c 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 5cd0a6e..a997abc 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]