Skip to content

Commit b720397

Browse files
committed
Include test arguments in report
1 parent e05a0a2 commit b720397

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/php/xp/test/JSON.class.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ public function finished($group, $test, $outcome) {
5656
}
5757

5858
$this->results[$outcome->kind()][]= [
59-
'title' => $test->name(),
60-
'fullTitle' => $group->name().'::'.$test->name(),
59+
'title' => $outcome->test,
60+
'fullTitle' => $group->name().' '.$outcome->test,
6161
'file' => $group->declaringFile(),
6262
'duration' => (int)($outcome->elapsed * 1000),
6363
'currentRetry' => 0,
@@ -90,7 +90,7 @@ public function summary($metrics, $overall, $failures) {
9090
// Reference all results inside the tests key
9191
foreach ($this->results as $kind => $results) {
9292
foreach ($results as $result) {
93-
$report['tests'][]= &$result;
93+
$report['tests'][]= $result;
9494
}
9595
}
9696

0 commit comments

Comments
 (0)