document empty_parameterset in customize.rst

This commit is contained in:
Ronny Pfannschmidt 2018-01-26 11:26:48 +01:00
parent d4c11e58aa
commit 8979b2a9d7
1 changed files with 18 additions and 0 deletions

View File

@ -346,3 +346,21 @@ passed multiple times. The expected format is ``name=value``. For example::
# content of pytest.ini
[pytest]
console_output_style = classic
.. confval:: empty_parameterset
.. versionadded:: 3.4
allows to pick the action for empty parametersets in parameterization
* ``skip`` skips tests with a empty parameterset
* ``xfail`` marks tests with a empty parameterset as xfail(run=False)
The default is ``skip``, it will be shifted to xfail in future.
.. code-block:: ini
# content of pytest.ini
[pytest]
empty_parameterset = xfail