Get -nauto default from PYTEST_XDIST_AUTO_NUM_WORKERS (#829)

* Get `-nauto` default from `PYTEST_XDIST_AUTO_NUM_WORKERS`

A few additional tests for existing functionality are added too.
And the ``-n logical`` option is documented.

Fixes: https://github.com/pytest-dev/pytest-xdist/issues/792
This commit is contained in:
Petr Viktorin
2022-10-24 14:33:19 +02:00
committed by GitHub
parent ab95a4b45d
commit c168706fbe
5 changed files with 155 additions and 6 deletions

2
changelog/792.feature Normal file
View File

@@ -0,0 +1,2 @@
The environment variable ``PYTEST_XDIST_AUTO_NUM_WORKERS`` can now be used to
specify the default for ``-n auto`` and ``-n logical``.

1
changelog/829.doc Normal file
View File

@@ -0,0 +1 @@
Document the ``-n logical`` option.