build(run): add test task

This commit is contained in:
Oliver Davies 2023-11-22 21:46:26 +00:00
parent e9d5c4ea6f
commit 9b360be240
2 changed files with 6 additions and 0 deletions

View file

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

5
run
View file

@ -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}"