Add junit_family config option

This commit is contained in:
Joseph Hunkeler 2018-12-03 09:56:21 -05:00
parent af2ee1e80a
commit 2e551c32b6
No known key found for this signature in database
GPG Key ID: 5C1D2774D4689768
1 changed files with 4 additions and 0 deletions

View File

@ -309,6 +309,9 @@ def pytest_addoption(parser):
"Duration time to report: one of total|call",
default="total",
) # choices=['total', 'call'])
parser.addini(
"junit_family", "Emit XML for schema: one of old|xunit1|xunit2", default="old"
)
def pytest_configure(config):
@ -321,6 +324,7 @@ def pytest_configure(config):
config.getini("junit_suite_name"),
config.getini("junit_logging"),
config.getini("junit_duration_report"),
config.getini("junit_family"),
)
config.pluginmanager.register(config._xml)