Introduce record_testsuite_property fixture

This exposes the functionality introduced in fa6acdc as a session-scoped fixture.

Plugins that want to remain compatible with the `xunit2`
standard should use this fixture instead of `record_property`.

Fix #5202
This commit is contained in:
Bruno Oliveira
2019-05-03 16:30:16 -03:00
committed by Bruno Oliveira
parent 3a4a815c41
commit 73bbff2b74
5 changed files with 129 additions and 34 deletions
+8
View File
@@ -424,6 +424,14 @@ record_property
.. autofunction:: _pytest.junitxml.record_property()
record_testsuite_property
~~~~~~~~~~~~~~~~~~~~~~~~~
**Tutorial**: :ref:`record_testsuite_property example`.
.. autofunction:: _pytest.junitxml.record_testsuite_property()
caplog
~~~~~~