Added notes about new pytest_xdist_make_scheduler hook

This commit is contained in:
Michael Elovskikh
2017-02-21 01:37:00 +05:00
parent a867f71c7a
commit 2c8efb5785
2 changed files with 7 additions and 0 deletions

View File

@@ -34,6 +34,8 @@ The execution flow is:
tests and sends them one by one to each **worker** in a round robin
fashion. The rest of the tests will be distributed later as **workers**
finish tests (see below).
1. Note that `pytest_xdist_make_scheduler` hook can be used to implement custom tests distribution logic.
1. **workers** re-implement `pytest_runtestloop`: pytest's default implementation
basically loops over all collected items in the `session` object and executes