Add doctest_encoding and junit_suite_name ini options

This commit is contained in:
Bruno Oliveira 2018-03-12 19:27:17 -03:00
parent 8243900960
commit 61b8ea8656
1 changed files with 19 additions and 0 deletions

View File

@ -957,6 +957,13 @@ passed multiple times. The expected format is ``name=value``. For example::
One or more doctest flag names from the standard ``doctest`` module.
:doc:`See how pytest handles doctests <doctest>`.
.. confval:: doctest_encoding
.. versionadded:: 3.1
Default encoding to use to decode text files with docstrings.
:doc:`See how pytest handles doctests <doctest>`.
.. confval:: confcutdir
Sets a directory where search upwards for ``conftest.py`` files stops.
@ -1036,5 +1043,17 @@ passed multiple times. The expected format is ``name=value``. For example::
as this is considered less error prone, see `#3155`_ for more details.
.. confval:: junit_suite_name
.. versionadded:: 3.1
To set the name of the root test suite xml item, you can configure the ``junit_suite_name`` option in your config file:
.. code-block:: ini
[pytest]
junit_suite_name = my_suite
.. _`#3155`: https://github.com/pytest-dev/pytest/issues/3155