Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 18fff4d

Browse filesBrowse files
committed
tox commands now have {posargs} as argument
When invoking an environement, one might want to pass extra argument to the command. That is done in tox by invoking an env and passing the extra arguments after '--' which are then available as '{posargs}'. Examples: # Reports flake8 error statistics tox -eflake8 -- --statistics # Only run test_util.py tests, printing a line per test: tox -epy27 -- --verbose git/test/test_util.py
1 parent 0441fdc commit 18fff4d
Copy full SHA for 18fff4d

1 file changed

+3-3Lines changed: 3 additions & 3 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎tox.ini‎

Copy file name to clipboardExpand all lines: tox.ini
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
envlist = py26,py27,flake8
33

44
[testenv]
5-
commands = nosetests
5+
commands = nosetests {posargs}
66
deps = -r{toxinidir}/requirements.txt
77
-r{toxinidir}/test-requirements.txt
88

99
[testenv:cover]
10-
commands = nosetests --with-coverage
10+
commands = nosetests --with-coverage {posargs}
1111

1212
[testenv:flake8]
13-
commands = flake8
13+
commands = flake8 {posargs}
1414

1515
[testenv:venv]
1616
commands = {posargs}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.