Skip to content

Commit 746edde

Browse files
committed
tox: support posargs, via TEST_ARGS in Makefile
1 parent 88ddc7b commit 746edde

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@ node_modules/jshint/bin/jshint:
2121

2222
test:
2323
DJANGO_SETTINGS_MODULE=tests.settings \
24-
django-admin test tests
24+
django-admin test $${TEST_ARGS:-tests}
2525

2626
test_selenium:
2727
DJANGO_SELENIUM_TESTS=true DJANGO_SETTINGS_MODULE=tests.settings \
28-
django-admin test tests
28+
django-admin test $${TEST_ARGS:-tests}
2929

3030
coverage:
3131
python --version
3232
coverage erase
3333
DJANGO_SETTINGS_MODULE=tests.settings \
34-
coverage run `which django-admin` test -v2 tests
34+
coverage run `which django-admin` test -v2 $${TEST_ARGS:-tests}
3535
coverage report
3636
coverage html
3737

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ setenv =
2929
whitelist_externals = make
3030
pip_pre = True
3131
usedevelop = true
32-
commands = make coverage
32+
commands = make coverage TEST_ARGS='{posargs:tests}'
3333

3434
[testenv:flake8]
3535
basepython = python2.7

0 commit comments

Comments
 (0)