pytest-dev / pytest-xdist

pytest plugin for distributed testing and loop-on-failures testing modes.
https://pytest-xdist.readthedocs.io
MIT License
1.49k stars 232 forks source link

Allow custom scheduler names in `--dist` command line argument #1148

Open amezin opened 3 weeks ago

amezin commented 3 weeks ago

There seems to be no way to fix the argument validation, at least without complicating things unnecessarily.

So simply remove it. Instead, check pytest_xdist_make_scheduler return value.

Also, convert every built-in scheduler to a separate plugin.

Fixes: https://github.com/pytest-dev/pytest-xdist/issues/970