From 5c6e25a660f816bb91e3123e08622f824eb9de51 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 12 Apr 2023 22:21:43 +0100 Subject: [PATCH] feat(justfile): add `phpunit` recipe Add a `phpunit` recipe for running PHPUnit tests, with a `test` alias that could later be used for running Pest in PHP projects or Jest in a node project. --- templates/justfile.twig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/justfile.twig b/templates/justfile.twig index 3a1ce6f..14df022 100644 --- a/templates/justfile.twig +++ b/templates/justfile.twig @@ -6,6 +6,11 @@ default: {% if "php" is same as language %} composer *args: {{ "just _exec php composer {{ args }}" | raw }} + +alias phpunit := test + +test *args: + {{ "just _run phpunit {{ args }}" | raw }} {% endif %} {% if "drupal-project" is same as type %}