1
0
mirror of https://github.com/moparisthebest/wallabag synced 2024-12-18 05:32:23 -05:00

Add Atoum console command

This commit is contained in:
Vincent Jousse 2013-11-21 18:49:06 +01:00
parent edff397478
commit 9bfeaf9cc0
2 changed files with 11 additions and 1 deletions

View File

@ -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;
}
}

4
tests/bootstrap.php Normal file
View File

@ -0,0 +1,4 @@
<?php
require_once __DIR__.'/../vendor/autoload.php';
require_once __DIR__.'/../vendor/atoum/atoum/scripts/runner.php';