Skip to content

Commit 3d02b1d

Browse files
author
Elliot Boschwitz
authored
Added support for reporting unstable test failures in ADO (#395)
1 parent a3c60c4 commit 3d02b1d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,9 @@ def unstable_unit_test():
160160
"""
161161
Run all unstable unit tests.
162162
"""
163-
utility.exec_command('pytest -s -v -m unstable {}'.format(get_active_test_filepaths()),
163+
runid = str(uuid.uuid1())
164+
utility.exec_command('pytest --doctest-modules --junitxml=junit/test-unstable-{}-results.xml '
165+
'-s -v -m unstable {}'.format(runid, get_active_test_filepaths()),
164166
utility.ROOT_DIR, continue_on_error=False)
165167

166168

0 commit comments

Comments
 (0)