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

Read tests to be executed from a file instead of from positional arguments #12079

Closed
levsa opened this issue Mar 5, 2024 · 1 comment
Closed

Comments

@levsa
Copy link
Contributor

levsa commented Mar 5, 2024

What's the problem this feature will solve?

I want to output a set of tests using pytest --collect-only -q to a file, and run selected subsets of it using pytest

Describe the solution you'd like

I want to collect tests to run and put them in a file (supported today, except -q or a similar flag to leave out all output except the actual test names)):

> pytest --collect-only -q > tests_to_run.txt

And then tell pytest to run tests listed in that file (or from stdin), like e.g.:

> pytest --from-file tests_to_run.txt

I want to run selected subsets of the tests to find bugs caused by interdependencies between a set of tests.

Alternative Solutions

Additional context

@bluetech
Copy link
Member

bluetech commented Mar 5, 2024

Hi,

We have an accepted issue about this #11871 so I'll close this one.

@bluetech bluetech closed this as not planned Won't fix, can't repro, duplicate, stale Mar 5, 2024
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

No branches or pull requests

2 participants