Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tox: support posargs, via TEST_ARGS in Makefile #983

Merged
merged 1 commit into from Sep 6, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions Makefile
Expand Up @@ -21,17 +21,17 @@ node_modules/jshint/bin/jshint:

test:
DJANGO_SETTINGS_MODULE=tests.settings \
django-admin test tests
django-admin test $${TEST_ARGS:-tests}

test_selenium:
DJANGO_SELENIUM_TESTS=true DJANGO_SETTINGS_MODULE=tests.settings \
django-admin test tests
django-admin test $${TEST_ARGS:-tests}

coverage:
python --version
coverage erase
DJANGO_SETTINGS_MODULE=tests.settings \
coverage run `which django-admin` test -v2 tests
coverage run `which django-admin` test -v2 $${TEST_ARGS:-tests}
coverage report
coverage html

Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Expand Up @@ -29,7 +29,7 @@ setenv =
whitelist_externals = make
pip_pre = True
usedevelop = true
commands = make coverage
commands = make coverage TEST_ARGS='{posargs:tests}'

[testenv:flake8]
basepython = python2.7
Expand Down