From 34e85ccdb452b3d7fc289da2246849362f7f4e25 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 9 May 2023 20:24:21 +0100 Subject: [PATCH] fix(justfile): running tests in Drupal --- templates/justfile.twig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/justfile.twig b/templates/justfile.twig index 8aacbc8..b391be1 100644 --- a/templates/justfile.twig +++ b/templates/justfile.twig @@ -19,8 +19,12 @@ composer *args: alias phpunit := test test *args: +{% if "drupal-project" is same as type %} + {{ "just _exec php phpunit --colors=always {{ args }}" | raw }} +{% else %} {{ "just _run php phpunit --colors=always {{ args }}" | raw }} {% endif %} +{% endif %} {% if "drupal-project" is same as type %} drush *args: