We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 550c361 commit ca9613bCopy full SHA for ca9613b
1 file changed
utest/run.py
@@ -1,13 +1,22 @@
1
#!/usr/bin/env python
2
-
+import platform
3
from os.path import abspath, dirname, join
4
import sys
5
6
import pytest
7
8
9
curdir = dirname(abspath(__file__))
10
+atest_dir = join(curdir, '..', 'atest')
11
+python_version = platform.python_version()
12
+xunit_report = join(atest_dir, 'results', 'xunit-%s.xml' % python_version)
13
sys.path.insert(0, join(curdir, '..', 'src'))
-sys.path.insert(0, join(curdir, '..', 'atest'))
-rc = pytest.main(sys.argv[1:] + ['-p', 'no:cacheprovider', curdir])
14
+sys.path.insert(0, atest_dir)
15
+pytest_args = sys.argv[1:] + [
16
+ '-p', 'no:cacheprovider',
17
+ '--junitxml=%s' % xunit_report,
18
+ '-o', 'junit_family=xunit2',
19
+ curdir
20
+]
21
+rc = pytest.main(pytest_args)
22
sys.exit(rc)
0 commit comments