fixing web test runner
This commit is contained in:
parent
4a2fac7218
commit
dfd3f18987
@ -375,15 +375,14 @@ class MyReporter extends HtmlReporter {
|
|||||||
|
|
||||||
print '<pre>';
|
print '<pre>';
|
||||||
foreach ($this->_test->getMessages() as $message) {
|
foreach ($this->_test->getMessages() as $message) {
|
||||||
print $message . '\n';
|
print $message;
|
||||||
}
|
}
|
||||||
print '</pre>';
|
print '</pre>';
|
||||||
$colour = ($this->_test->getFailCount() > 0 ? 'red' : 'green');
|
$colour = ($this->_test->getFailCount() > 0 ? 'red' : 'green');
|
||||||
print '<div style=\'';
|
print '<div style=\'';
|
||||||
print 'padding: 8px; margin-top: 1em; background-color: $colour; color: white;';
|
print 'padding: 8px; margin-top: 1em; background-color: $colour; color: white;';
|
||||||
print '\'>';
|
print '\'>';
|
||||||
print $this->_test->getTestCaseCount() . ' test cases';
|
print $this->_test->getTestCaseCount() . ' test cases.';
|
||||||
print ' test cases complete:\n';
|
|
||||||
print '<strong>' . $this->_test->getPassCount() . '</strong> passes and ';
|
print '<strong>' . $this->_test->getPassCount() . '</strong> passes and ';
|
||||||
print '<strong>' . $this->_test->getFailCount() . '</strong> fails.';
|
print '<strong>' . $this->_test->getFailCount() . '</strong> fails.';
|
||||||
print '</div>';
|
print '</div>';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user