MCPcopy
hub / github.com/plotly/dash / parse_test_results

Function parse_test_results

rerun_failed_tests.py:4–11  ·  view source on GitHub ↗
(file_path)

Source from the content-addressed store, hash-verified

2import subprocess
3
4def parse_test_results(file_path):
5 tree = ET.parse(file_path)
6 root = tree.getroot()
7 failed_tests = []
8 for testcase in root.iter('testcase'):
9 if testcase.find('failure') is not None:
10 failed_tests.append(testcase.get('name'))
11 return failed_tests
12
13def rerun_failed_tests(failed_tests):
14 if failed_tests:

Callers 1

Calls 4

findMethod · 0.80
parseMethod · 0.45
appendMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…