Skip to content

Commit

Permalink
Use xunit1 as default junit family version (sonic-net#10491)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
xwjiang-ms authored and mssonicbld committed Oct 26, 2023
1 parent b3d60c4 commit fd42376
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/pytest.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[pytest]
junit_family=xunit1
markers:
acl: ACL tests
bsl: BSL tests
Expand Down

0 comments on commit fd42376

Please sign in to comment.