diff options
| author | Simon Wisselink <wisskid@users.noreply.github.com> | 2022-09-22 14:31:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-22 14:31:49 +0200 |
| commit | ea95e8b04750b3e52d0dfc6e201a19e5e385f298 (patch) | |
| tree | 593d4ffb0f900a1ac3964a2ca2fc60799d88096a /run-tests.sh | |
| parent | 474138fd7ee0519b68a7fb773fb5867bd856e242 (diff) | |
| download | smarty-ea95e8b04750b3e52d0dfc6e201a19e5e385f298.tar.gz smarty-ea95e8b04750b3e52d0dfc6e201a19e5e385f298.tar.bz2 smarty-ea95e8b04750b3e52d0dfc6e201a19e5e385f298.zip | |
Re-organize all testrunners to use the same script(s). (#812)
Diffstat (limited to 'run-tests.sh')
| -rwxr-xr-x | run-tests.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/run-tests.sh b/run-tests.sh new file mode 100755 index 00000000..ddcad01b --- /dev/null +++ b/run-tests.sh @@ -0,0 +1,13 @@ +#!/bin/sh +composer update + +php -r 'echo "\nPHP version " . phpversion() . ". ";'; + +if [ -z $1 ]; +then + echo "Running all unit tests.\n" + php ./vendor/phpunit/phpunit/phpunit +else + echo "Running all unit tests, except tests marked with @group $1.\n" + php ./vendor/phpunit/phpunit/phpunit --exclude-group $1 +fi
\ No newline at end of file |
