Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
add debug option to stepler command automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholascus committed Jun 11, 2018
1 parent bf4ad02 commit f8fe45c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -36,5 +36,5 @@ extensions:
```
Once command is enabled, it will duplicate run command accepting all the same parameters but also enabling Stepler step-by-step debug execution:
```bash
vendor/bin/codecept stepler --debug
vendor/bin/codecept stepler
```
7 changes: 7 additions & 0 deletions src/Nicholascus/Codeception/Commands/Stepler.php
Expand Up @@ -4,6 +4,8 @@
use Codeception\Command\Run;
use Codeception\Configuration;
use Codeception\CustomCommandInterface;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

class Stepler extends Run implements CustomCommandInterface {
protected function getGlobalConfig($conf = null) {
Expand All @@ -14,4 +16,9 @@ protected function getGlobalConfig($conf = null) {
public static function getCommandName() {
return 'stepler';
}

public function execute(InputInterface $input, OutputInterface $output) {
$input->setOption('debug', 'true');
parent::execute($input, $output);
}
}

0 comments on commit f8fe45c

Please sign in to comment.