From fd42376d6cb22311c40c5a363cc3d5a30b2f2b1f Mon Sep 17 00:00:00 2001 From: xwjiang-ms <96218837+xwjiang-ms@users.noreply.github.com> Date: Thu, 26 Oct 2023 10:38:35 +0800 Subject: [PATCH] Use xunit1 as default junit family version (#10491) What is the motivation for this PR? When we use python3 env to run tests, it would use latest pytest by default, with junit_family=xunit2, which would not generate "file" and "line" field in test result xml file How did you do it? Use junit_family=xunit1 by default in pytest.ini file How did you verify/test it? Run test in python2 and python3 env, difference is only "file" and "line" fields in xml file --- tests/pytest.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/pytest.ini b/tests/pytest.ini index bd80f81492..8d34aafd94 100644 --- a/tests/pytest.ini +++ b/tests/pytest.ini @@ -1,4 +1,5 @@ [pytest] +junit_family=xunit1 markers: acl: ACL tests bsl: BSL tests