Skip to content

Commit

Permalink
Add doctest_encoding and junit_suite_name ini options
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoddemus committed Mar 12, 2018
1 parent 8243900 commit 61b8ea8
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions doc/en/reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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

0 comments on commit 61b8ea8

Please sign in to comment.