Skip to content

Commit 66fa918

Browse files
Permit running PHPUnit tests, if they exist
1 parent 8ba67d6 commit 66fa918

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bin/test.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
set -ex
44

5+
# Run the unit tests, if they exist
6+
if [ -f "phpunit.xml" ] || [ -f "phpunit.xml.dist" ]
7+
then
8+
phpunit
9+
fi
10+
511
# Run the functional tests
612
BEHAT_TAGS=$(php utils/behat-tags.php)
713
behat --format progress $BEHAT_TAGS --strict

0 commit comments

Comments
 (0)