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: permit positional arguments when running 'unittest'-based unit tests #686

Merged
merged 1 commit into from Nov 22, 2022

Conversation

jayaddison
Copy link
Collaborator

tox version 1.0 onwards provides support for substitution of a {posargs} pattern in the tox.ini file.

This can allow callers to provide additional arguments to the tox environment command.

In the context of unit testing, that's often useful to specify test patterns to run - for example, by using tox -e py -- -k <pattern> to run only unit tests with names matched by <pattern>.

@jayaddison jayaddison merged commit f278c94 into main Nov 22, 2022
@jayaddison jayaddison deleted the issue-617/unittest-positional-arguments branch November 22, 2022 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant