From 9b360be240bd220d1ce45d1bee11f3bf08ab69c9 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 22 Nov 2023 21:46:26 +0000 Subject: [PATCH] build(run): add `test` task --- CHANGELOG.md | 1 + run | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e5153a7..1d67d56 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ * Add missing validation rules to the `Configuration` DTO object. * Add a test to ensure the project type is a valid type. * Add a test to ensure the web server is a valid type. +* Add a `test` task to `run` script. ### Changed diff --git a/run b/run index 6140f81..8c1f928 100755 --- a/run +++ b/run @@ -42,5 +42,10 @@ function help { printf "\nExtended help:\n Each task has comments for general usage\n" } + +function test { + phpunit "${@}" +} + TIMEFORMAT=$'\nTask completed in %3lR' time "${@:-help}"