mirror of
https://github.com/opdavies/versa.git
synced 2025-03-13 05:26:56 +00:00
Add test command that runs PHPUnit
This commit is contained in:
parent
dcb600379a
commit
6e87e3518f
8
versa
8
versa
|
@ -32,6 +32,14 @@ $application->setCode(function (InputInterface $input): int {
|
|||
$process->setTty(true);
|
||||
$process->run();
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue