Add test command that runs PHPUnit
This commit is contained in:
parent
dcb600379a
commit
6e87e3518f
1 changed files with 8 additions and 0 deletions
8
versa
8
versa
|
@ -32,6 +32,14 @@ $application->setCode(function (InputInterface $input): int {
|
||||||
$process->setTty(true);
|
$process->setTty(true);
|
||||||
$process->run();
|
$process->run();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'test':
|
||||||
|
// TODO: PHPUnit, Pest or ParaTest.
|
||||||
|
// TODO: commands in Docker Compose?
|
||||||
|
$process = new Process(command: ['./vendor/bin/phpunit']);
|
||||||
|
$process->setTty(true);
|
||||||
|
$process->run();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Reference in a new issue