Skip to content

Commit 1950102

Browse files
authored
Merge pull request #4743 from nicoddemus/junit-ref
Document junit_family option in the reference docs
2 parents 3a366f4 + 7f6108b commit 1950102

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

doc/en/reference.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1015,6 +1015,20 @@ passed multiple times. The expected format is ``name=value``. For example::
10151015
This tells pytest to ignore deprecation warnings and turn all other warnings
10161016
into errors. For more information please refer to :ref:`warnings`.
10171017

1018+
.. confval:: junit_family
1019+
1020+
.. versionadded:: 4.2
1021+
1022+
Configures the format of the generated JUnit XML file. The possible options are:
1023+
1024+
* ``xunit1`` (or ``legacy``): produces old style output, compatible with the xunit 1.0 format. **This is the default**.
1025+
* ``xunit2``: produces `xunit 2.0 style output <https://github.com/jenkinsci/xunit-plugin/blob/xunit-2.3.2/src/main/resources/org/jenkinsci/plugins/xunit/types/model/xsd/junit-10.xsd>`__,
1026+
which should be more compatible with latest Jenkins versions.
1027+
1028+
.. code-block:: ini
1029+
1030+
[pytest]
1031+
junit_family = xunit2
10181032
10191033
.. confval:: junit_suite_name
10201034

0 commit comments

Comments
 (0)