Add test command that runs PHPUnit

This commit is contained in:
Oliver Davies 2024-02-19 08:00:00 +00:00
parent dcb600379a
commit 6e87e3518f

8
versa
View file

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