Skip to content

Commit 95ede2f

Browse files
committed
Tox/Makefile: replace test-cov with just test + envvar
1 parent 7b59063 commit 95ede2f

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
*~
99
.*cache
1010
.DS_Store
11+
.coverage
1112
.idea
1213
.tox
1314
/venv*
@@ -18,6 +19,6 @@ dist
1819
docs/_build
1920
test-env
2021
tests/messages/data/project/i18n/en_US
22+
tests/messages/data/project/i18n/fi_BUGGY/LC_MESSAGES/*.mo
2123
tests/messages/data/project/i18n/long_messages.pot
2224
tests/messages/data/project/i18n/temp*
23-
tests/messages/data/project/i18n/fi_BUGGY/LC_MESSAGES/*.mo

Makefile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
test: import-cldr
2-
python ${PYTHON_TEST_FLAGS} -m pytest
3-
4-
test-cov: import-cldr
5-
python ${PYTHON_TEST_FLAGS} -m pytest --cov=babel
2+
python ${PYTHON_TEST_FLAGS} -m pytest ${PYTEST_FLAGS}
63

74
test-env:
85
virtualenv test-env

tox.ini

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@ deps =
1111
backports.zoneinfo;python_version<"3.9"
1212
tzdata;sys_platform == 'win32'
1313
whitelist_externals = make
14-
commands = make clean-cldr test-cov
14+
commands = make clean-cldr test
15+
setenv =
16+
PYTEST_FLAGS=--cov=babel
1517
passenv =
1618
BABEL_*
19+
PYTEST_*
1720
PYTHON_*
1821

1922
[gh-actions]

0 commit comments

Comments
 (0)