dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Selenium: replace UserLoginPage with BlankPage where possible"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
MediaWikiPHPUnitCommand.php
diff --git
a/tests/phpunit/MediaWikiPHPUnitCommand.php
b/tests/phpunit/MediaWikiPHPUnitCommand.php
index
8979195
..
6b1d817
100644
(file)
--- a/
tests/phpunit/MediaWikiPHPUnitCommand.php
+++ b/
tests/phpunit/MediaWikiPHPUnitCommand.php
@@
-18,11
+18,18
@@
class MediaWikiPHPUnitCommand extends PHPUnit_TextUI_Command {
$this->arguments['configuration'] = __DIR__ . '/suite.xml';
}
$this->arguments['configuration'] = __DIR__ . '/suite.xml';
}
- // Add our own listener
+ // Add our own listener
s
$this->arguments['listeners'][] = new MediaWikiPHPUnitTestListener;
$this->arguments['listeners'][] = new MediaWikiPHPUnitTestListener;
+ $this->arguments['listeners'][] = new MediaWikiLoggerPHPUnitTestListener;
// Output only to stderr to avoid "Headers already sent" problems
$this->arguments['stderr'] = true;
// Output only to stderr to avoid "Headers already sent" problems
$this->arguments['stderr'] = true;
+
+ // Use a custom result printer that includes per-test logging output
+ // when nothing is provided.
+ if ( !isset( $this->arguments['printer'] ) ) {
+ $this->arguments['printer'] = MediaWikiPHPUnitResultPrinter::class;
+ }
}
protected function createRunner() {
}
protected function createRunner() {