From 6e87e3518f009dae0e946afa2d535bb21d6ec916 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Mon, 19 Feb 2024 08:00:00 +0000 Subject: [PATCH] Add test command that runs PHPUnit --- versa | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/versa b/versa index a22b4dc..7dea9b7 100755 --- a/versa +++ b/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;