INNER CODE UNIT · Python

merge_reports

scality/Zenko · .github/scripts/merge-junit-reports.py:96

def merge_reports(output_file, input_files):
    all_testsuites = []

    # Collect all testsuites from all input files
    for file in input_files:
        try:
            tree = ET.parse(file)
            source_root = tree.getroot()

            # Handle both testsuites and testsuite root elements
            if source_root.tag == 'testsuites':
                testsuites = source_root.findall('testsuite')
            else:
                testsuites = [source_root]

            all_testsuites.extend(testsuites)

        except ET.ParseError as e:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…