Add --maxschedchunk CLI option (#857)

Maximum number of tests scheduled in one step.

Setting it to 1 will force pytest to send tests to workers one by one -
might be useful for a small number of slow tests.

Larger numbers will allow the scheduler to submit consecutive chunks of tests
to workers - allows reusing fixtures.

Unlimited if not set.

Fixes #855
Fixes #255
This commit is contained in:
Aleksandr Mezin
2022-12-23 14:21:20 +03:00
committed by GitHub
parent 7faa69a04b
commit 9b0b5b1495
4 changed files with 74 additions and 2 deletions

2
changelog/855.feature Normal file
View File

@@ -0,0 +1,2 @@
Users can now configure ``load`` scheduling precision using ``--maxschedchunk`` command
line option.