mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Ensure incomplete tests also have a backtrace
This commit is contained in:
parent
ce097a7b54
commit
f57a763524
@ -98,12 +98,9 @@ class CliTestReporter extends SapphireTestReporter {
|
||||
|
||||
}
|
||||
|
||||
if( $test['status'] == 2) {
|
||||
echo "\n" . SS_Cli::text($test['name'] . "\n" . $test['message'] . "\n", 'yellow', null);
|
||||
} else {
|
||||
echo "\n" . SS_Cli::text($test['name'] . "\n". $test['message'] . "\n", 'red', null);
|
||||
echo SS_Backtrace::get_rendered_backtrace($filteredTrace, true);
|
||||
}
|
||||
$color = ($test['status'] == 2) ? 'yellow' : 'red';
|
||||
echo "\n" . SS_Cli::text($test['name'] . "\n". $test['message'] . "\n", $color, null);
|
||||
echo SS_Backtrace::get_rendered_backtrace($filteredTrace, true);
|
||||
echo "--------------------\n";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user