-
Notifications
You must be signed in to change notification settings - Fork 27
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
Multiplying tests should happen after -k #15
Comments
@blueyed that is currently structurally impossible as of now since the multiplication uses a hidden autouse fixture as its about the only sane way to do it atm |
@RonnyPfannschmidt |
no |
Well, it's not easily possible, but should be probably, shouldn't it?
|
@RonnyPfannschmidt |
What's the status on this issue? Is this being worked on? |
When used with
-k
to select only some specific tests,pytest
still collects all tests, multiplied by the number passed to--count
.Therefore
pytest --count=120 -x -k test_foo
will collect the number of total tests times 120, which results in a lot of processing and memory usage.I can imagine that pytest-repeat could be improved in this regard to only multiply the collected tests after
-k
was applied.The workaround here is to specify the file containing the test, but that still multiplies the tests contained in this file.
The text was updated successfully, but these errors were encountered: