mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #4525 from tractorcow/pulls/3.1/teamcity
MINOR Adjustment to teamcity output
This commit is contained in:
commit
790dff7b81
@ -46,7 +46,7 @@ class TeamCityListener implements PHPUnit_Framework_TestListener {
|
|||||||
|
|
||||||
public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time) {
|
public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time) {
|
||||||
$class = get_class($test);
|
$class = get_class($test);
|
||||||
$message = $this->escape($e->getMessage());
|
$message = $this->escape(PHPUnit_Framework_TestFailure::exceptionToString($e));
|
||||||
$trace = $this->escape($e->getTraceAsString());
|
$trace = $this->escape($e->getTraceAsString());
|
||||||
echo "##teamcity[testFailed type='failure' name='{$class}.{$test->getName()}' message='$message'"
|
echo "##teamcity[testFailed type='failure' name='{$class}.{$test->getName()}' message='$message'"
|
||||||
. " details='$trace']\n";
|
. " details='$trace']\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user