2018-09-21 13:06:16 +00:00
|
|
|
#!/usr/bin/env bash
|
2018-11-02 10:43:46 +00:00
|
|
|
WORKING_DIR="$PWD"
|
2019-03-13 17:14:02 +00:00
|
|
|
cd "$WP_CORE_DIR/wp-content/plugins/woocommerce-admin/"
|
2018-11-02 14:06:29 +00:00
|
|
|
phpunit --version
|
2020-01-16 14:03:44 +00:00
|
|
|
if [[ {$RUN_RANDOM} == 1 ]]; then
|
|
|
|
./vendor/bin/phpunit -c phpunit.xml.dist --order-by=random
|
|
|
|
else
|
|
|
|
phpunit -c phpunit.xml.dist
|
|
|
|
fi
|
2018-11-02 10:43:46 +00:00
|
|
|
TEST_RESULT=$?
|
|
|
|
cd "$WORKING_DIR"
|
|
|
|
exit $TEST_RESULT
|