Skip to content

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

Closed
@jonathanunderwood

Description

@jonathanunderwood
  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions