Skip to content

Commit

Permalink
Merge pull request #106 from atoum/debug-opt
Browse files Browse the repository at this point in the history
Add debug option
  • Loading branch information
jubianchi authored Nov 18, 2016
2 parents ad06af1 + a60ea5d commit 32699e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
`dev-master`
===========

* [#106](https://github.com/atoum/AtoumBundle/pull/106) Add debug option ([@Djuuu])
* [#105](https://github.com/atoum/AtoumBundle/pull/105) Add phpDoc on Test and WebTest classes ([@maxailloud])
* [#104](https://github.com/atoum/AtoumBundle/pull/104) Add loop mode support ([@Djuuu])
* [#103](https://github.com/atoum/AtoumBundle/pull/103) Improve compatibility with Symfony 3 ([@lolautruche])
Expand Down Expand Up @@ -58,4 +59,3 @@
[@lolautruche]: https://github.com/lolautruche
[@gpaton]: https://github.com/gpaton
[@maxailloud]: https://github.com/maxailloud

5 changes: 5 additions & 0 deletions Command/AtoumCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ protected function configure()
->addOption('loop', 'l', InputOption::VALUE_NONE, 'Enables Atoum loop mode')
->addOption('force-terminal', '', InputOption::VALUE_NONE, '')
->addOption('score-file', '', InputOption::VALUE_REQUIRED, '')
->addOption('debug', 'd', InputOption::VALUE_NONE, 'Enables Atoum debug mode')
;
}

Expand Down Expand Up @@ -163,6 +164,10 @@ protected function execute(InputInterface $input, OutputInterface $output)
$this->setAtoumArgument('--score-file', $input->getOption('score-file'));
}

if ($input->getOption('debug')) {
$this->setAtoumArgument('--debug');
}

$runner->run($this->getAtoumArguments());
}

Expand Down

0 comments on commit 32699e0

Please sign in to comment.