Skip to content
This repository was archived by the owner on Sep 7, 2022. It is now read-only.

Commit 5927d71

Browse files
KevMjverkoey
authored andcommitted
Change test method name regex to have leading \'test\' be optional (#5)
1 parent 888cd4d commit 5927d71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parser/XcodeTestResultParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function parseTestResults($path, $test_results) {
9090
}
9191

9292
// End of a test.
93-
if (!preg_match('/\'-\[.+? test(.+?)\]\' (.+?) \((.+?) seconds\\).$/', $line, $matches)) {
93+
if (!preg_match('/\'-\[\S*\s(?:test)*(.+?)\]\' (.+?) \((.+?) seconds\).$/', $line, $matches)) {
9494
echo "Unable to parse line:\n$line\n";
9595
continue;
9696
}

0 commit comments

Comments
 (0)