Skip to content

tox commands now have {posargs} as argument #202

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

Merged
merged 1 commit into from
Nov 15, 2014

Conversation

hashar
Copy link
Contributor

@hashar hashar commented Nov 14, 2014

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

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
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 18fff4d on hashar:tox into * on gitpython-developers:0.3*.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 18fff4d on hashar:tox into * on gitpython-developers:0.3*.

@Byron
Copy link
Member

Byron commented Nov 15, 2014

Thanks !

Byron added a commit that referenced this pull request Nov 15, 2014
tox commands now have {posargs} as argument
@Byron Byron merged commit 9c39afa into gitpython-developers:0.3 Nov 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants