Skip to content

(v2) Extend tox.ini with testpaths and {posargs} in poetry-pytest invocation #2068

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

Open
wants to merge 1 commit into
base: v2
Choose a base branch
from

Conversation

chrisinmtown
Copy link
Contributor

@chrisinmtown chrisinmtown commented Jul 18, 2025

This allows limiting the scope of the test run, which can save much time.

Run one test in one test environment:

tox -e py39 -- tests/test_api.py::test_api

Run one test in all test environments:

tox -- tests/test_api.py::test_api

Run all tests in one file in one test environment:

tox -e py39 -- tests/test_api.py

Run all tests in one file in all test environments:

tox -- tests/test_api.py

…tion

This allows limiting the scope of the test run, which can save much time.
    
Run one test in one test environment:
    
    tox -e py39 -- tests/test_api.py::test_api
    
Run one test in all test environments:
    
    tox -- tests/test_api.py::test_api
    
Run all tests in one file in one test environment:
    
    tox -e py39 -- tests/test_api.py
    
Run all tests in one file in all test environments:
    
    tox -- tests/test_api.py
@chrisinmtown chrisinmtown changed the title Extend tox.ini with testpaths and {posargs} in poetry-pytest invocation (v2) Extend tox.ini with testpaths and {posargs} in poetry-pytest invocation Jul 18, 2025
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.

1 participant