(v2) Extend tox.ini with {posargs} in poetry-pytest invocation#2068
Open
chrisinmtown wants to merge 1 commit intospec-first:v2from
Open
(v2) Extend tox.ini with {posargs} in poetry-pytest invocation#2068chrisinmtown wants to merge 1 commit intospec-first:v2from
chrisinmtown wants to merge 1 commit intospec-first:v2from
Conversation
testpaths and {posargs} in poetry-pytest invocationtestpaths and {posargs} in poetry-pytest invocation
Contributor
Author
|
I back-ported this tiny change from V3, it makes testing just a little bit easier. Please consider it in the next round, thank you. |
96adabc to
8b92ac8
Compare
This allows limiting the scope of the test run, which can save much time.
Run all tests:
tox
Run all tests in one file in all test environments:
tox -- tests/test_api.py
Run one test in all test environments:
tox -- tests/test_api.py::test_api
Run all tests in one test environment:
tox -e py39
Run all tests in one file in one test environment:
tox -e py39 -- tests/test_api.py
Run one test in one test environment:
tox -e py39 -- tests/test_api.py::test_api
8b92ac8 to
ce3c399
Compare
testpaths and {posargs} in poetry-pytest invocation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This allows limiting the scope of the test run, which can save much time.
Run one test in one test environment:
Run one test in all test environments:
Run all tests in one file in one test environment:
Run all tests in one file in all test environments: