extension-command/bin/test.sh
2017-08-02 10:00:18 -07:00

13 lines
240 B
Bash
Executable file

#!/bin/bash
set -ex
# Run the unit tests, if they exist
if [ -f "phpunit.xml" ] || [ -f "phpunit.xml.dist" ]
then
phpunit
fi
# Run the functional tests
BEHAT_TAGS=$(php utils/behat-tags.php)
behat --format progress $BEHAT_TAGS --strict