Skip to content

Commit 458e8e7

Browse files
committed
Making duration accept ms|s|m|h
1 parent fc8e9e0 commit 458e8e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TestResult.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ private function parseOutput(): void
5050
private function parseMainMetrics(): void
5151
{
5252
// Duration
53-
if (preg_match('/Duration:\s+([^\n]+)', $this->rawOutput, $matches)) {
53+
if (preg_match('/Duration:\s+([\d.]+(?:ms|s|m|hr))/', $this->rawOutput, $matches)) {
5454
$this->parsedResults['duration'] = $matches[1];
5555
}
5656

0 commit comments

Comments
 (0)