Add junit_family config option

This commit is contained in:
Joseph Hunkeler
2018-12-03 09:56:21 -05:00
parent af2ee1e80a
commit 2e551c32b6

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)