mirror of
https://github.com/moparisthebest/wallabag
synced 2024-12-18 21:52:19 -05:00
Add Atoum console command
This commit is contained in:
parent
edff397478
commit
9bfeaf9cc0
@ -17,12 +17,18 @@ class UnitTestsCommand extends BaseCommand
|
|||||||
protected function configure()
|
protected function configure()
|
||||||
{
|
{
|
||||||
$this
|
$this
|
||||||
->setName('tests:units')
|
->setName('tests:unit')
|
||||||
->setDescription('Launches units tests with Atoum')
|
->setDescription('Launches units tests with Atoum')
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function execute(InputInterface $input, OutputInterface $output)
|
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
4
tests/bootstrap.php
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
require_once __DIR__.'/../vendor/autoload.php';
|
||||||
|
require_once __DIR__.'/../vendor/atoum/atoum/scripts/runner.php';
|
Loading…
Reference in New Issue
Block a user