'use-normal-tables' => false,
'reuse-db' => false,
'wiki=' => false,
+ 'debug-tests' => false,
);
public function __construct() {
}
}
+ protected function handleArguments( array $argv ) {
+ parent::handleArguments( $argv );
+
+ if ( !isset( $this->arguments['listeners'] ) ) {
+ $this->arguments['listeners'] = array();
+ }
+
+ foreach ( $this->options[0] as $option ) {
+ switch ( $option[0] ) {
+ case '--debug-tests':
+ $this->arguments['listeners'][] = new MediaWikiPHPUnitTestListener( 'PHPUnitCommand' );
+ break;
+ }
+ }
+ }
+
public static function main( $exit = true ) {
$command = new self;
ParserTest-specific options:
--regex="<regex>" Only run parser tests that match the given regex
- --file="<filename>" Prints the version and exits.
+ --file="<filename>" File describing parser tests
--keep-uploads Re-use the same upload directory for each test, don't delete it
--reuse-db Init DB only if tables are missing and keep after finish.
+Debugging options:
+ --debug-tests Log testing activity to the PHPUnitCommand log channel.
+
EOT;
}
}