We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 863227e commit eb12bb3Copy full SHA for eb12bb3
functions.php
@@ -104,7 +104,9 @@ function process_junit_xml( $xml_string )
104
);
105
106
$results['testsuites'] = array();
107
- foreach ( $project->testsuite as $testsuite ) {
+
108
+ $testsuites = $xml->xpath( '//testsuites//testsuite[ ( @file ) and ( @errors > 0 or @failures > 0 ) ]' );
109
+ foreach ( $testsuites as $testsuite ) {
110
// Handle nested testsuites like tests with data providers.
111
$testsuite = isset( $testsuite->testsuite ) ? $testsuite->testsuite : $testsuite;
112
$result = array(
0 commit comments