diff --git a/src/Poche/Command/UnitTestsCommand.php b/src/Poche/Command/UnitTestsCommand.php index 28daba2..81fa809 100644 --- a/src/Poche/Command/UnitTestsCommand.php +++ b/src/Poche/Command/UnitTestsCommand.php @@ -17,12 +17,18 @@ class UnitTestsCommand extends BaseCommand protected function configure() { $this - ->setName('tests:units') + ->setName('tests:unit') ->setDescription('Launches units tests with Atoum') ; } protected function execute(InputInterface $input, OutputInterface $output) { + $atoum = $this->getProjectDirectory().'/vendor/bin/atoum'; + $unitTests = $this->getProjectDirectory().'/tests'; + + passthru(sprintf('%s -d %s -ft', $atoum, $unitTests), $status); + + return $status; } } diff --git a/tests/bootstrap.php b/tests/bootstrap.php new file mode 100644 index 0000000..ffa5070 --- /dev/null +++ b/tests/bootstrap.php @@ -0,0 +1,4 @@ +