Skip to content

Commit

Permalink
Allowing verbose output from PHPUnit. (#1883)
Browse files Browse the repository at this point in the history
  • Loading branch information
grasmash authored Aug 4, 2017
1 parent 400db0c commit b5334d2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Robo/Commands/Tests/PhpUnitCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use Acquia\Blt\Robo\BltTasks;
use Acquia\Blt\Robo\Exceptions\BltException;
use Robo\Contract\VerbosityThresholdInterface;
use Symfony\Component\Console\Output\OutputInterface;

/**
* Defines commands in the "tests" namespace.
Expand Down Expand Up @@ -61,6 +62,11 @@ public function testsPhpUnit() {
$task->dir($test['path']);
}

if ($this->output()->getVerbosity() >= OutputInterface::VERBOSITY_NORMAL) {
$task->printMetadata(TRUE);
$task->arg('-v');
}

$supported_options = [
'config' => 'configuration',
'group' => 'group',
Expand Down

0 comments on commit b5334d2

Please sign in to comment.