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

RFE: add an option to run tests in batches #3000

Closed
4 tasks
jonathanunderwood opened this issue Dec 5, 2017 · 3 comments
Closed
4 tasks

RFE: add an option to run tests in batches #3000

jonathanunderwood opened this issue Dec 5, 2017 · 3 comments

Comments

@jonathanunderwood
Copy link

jonathanunderwood commented Dec 5, 2017

  • Include a detailed description of the bug or suggestion
  • pip list of the virtual environment you are using
  • pytest and operating system versions
  • Minimal example if possible

I have a pytest suite that uses fixtures extensively to run some functions with all combinations of options. The result is that pytest collects and runs something like 13,000 tests. Unfortunately, on Appveyor/Windows at least, this exhausts the system memory, and the tests fail. No large objects are created by the test themselves, it's simply that the pytest in-memory overhead of 13000+ tests is significant. It would be great to be able to tell pytest to step through these tests 1000 at a time or somesuch, such that the test suite will still run on memory constrained systems. Something like --batch-size=1000.

@RonnyPfannschmidt
Copy link
Member

i beleive this is a topic for pytest-xdist

@jonathanunderwood
Copy link
Author

i beleive this is a topic for pytest-xdist

Possibly.. Without knowing the details of the implementation though, I think it may require changes to the test collection process in coore pytest. That's just a dumb guess though.

@nicoddemus
Copy link
Member

@jonathanunderwood no worries. Please follow pytest-dev/pytest-xdist#255 which I believe is the same requirement (or closely related).

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

3 participants