-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #101 from jigarius/91-output-verbosity
Improve output formatting and verbosity
- Loading branch information
Showing
9 changed files
with
355 additions
and
204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<?php | ||
|
||
namespace Drall\Integration\Command; | ||
|
||
use Drall\TestCase; | ||
use Symfony\Component\Process\Process; | ||
|
||
/** | ||
* @testdox Base Command | ||
* @covers \Drall\Command\BaseCommand | ||
*/ | ||
class BaseCommandTest extends TestCase { | ||
|
||
/** | ||
* @testdox Detects --group. | ||
*/ | ||
public function testWithGroup(): void { | ||
$process1 = Process::fromShellCommandline( | ||
'drall exec --group=bluish --dry-run -vv -- ./vendor/bin/drush st', | ||
static::PATH_DRUPAL, | ||
); | ||
$process1->run(); | ||
$this->assertOutputStartsWith(<<<EOT | ||
[info] Using group: bluish | ||
EOT, $process1->getOutput()); | ||
|
||
// Short form. | ||
$process1 = Process::fromShellCommandline( | ||
'drall exec -g bluish --dry-run -vv -- ./vendor/bin/drush st', | ||
static::PATH_DRUPAL, | ||
); | ||
$process1->run(); | ||
$this->assertOutputStartsWith(<<<EOT | ||
[info] Using group: bluish | ||
EOT, $process1->getOutput()); | ||
} | ||
|
||
/** | ||
* @testdox Detects --filter. | ||
*/ | ||
public function testWithFilter(): void { | ||
$process1 = Process::fromShellCommandline( | ||
'drall exec --filter=leo --dry-run -vv -- ./vendor/bin/drush st', | ||
static::PATH_DRUPAL, | ||
); | ||
$process1->run(); | ||
$this->assertOutputStartsWith(<<<EOT | ||
[info] Using filter: leo | ||
EOT, $process1->getOutput()); | ||
|
||
// Short form. | ||
$process2 = Process::fromShellCommandline( | ||
'drall exec -f leo --dry-run -vv -- ./vendor/bin/drush st', | ||
static::PATH_DRUPAL, | ||
); | ||
$process2->run(); | ||
$this->assertOutputStartsWith(<<<EOT | ||
[info] Using filter: leo | ||
EOT, $process2->getOutput()); | ||
} | ||
|
||
} |
Oops, something went wrong.