Skip to content

Commit 76ab0ae

Browse files
authored
Merge pull request #126 from wp-cli/121-phpunit
Permit running PHPUnit tests, if they exist
2 parents f7710a6 + 66fa918 commit 76ab0ae

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)