-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathphpunit.sh
More file actions
executable file
·26 lines (19 loc) · 1.04 KB
/
phpunit.sh
File metadata and controls
executable file
·26 lines (19 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env bash
set -e
cd $(dirname $0)/../../
chown -R www-data var/cache/
mkdir -p /tmp/eb-fixtures
chmod -R 0777 /tmp/eb-fixtures
echo -e "\nInstalling database fixtures...\n"
./bin/console cache:clear --env=ci --no-warmup
./bin/console doctrine:schema:drop --force --env=ci
./bin/console doctrine:schema:create --env=ci
echo -e "\nPHPUnit legacy tests\n"
XDEBUG_MODE=coverage ./vendor/bin/phpunit --configuration=./tests/phpunit.xml --testsuite=eb4 --coverage-clover coverage.xml
echo -e "\nPHPUnit unit tests\n"
XDEBUG_MODE=coverage ./vendor/bin/phpunit --configuration=./tests/phpunit.xml --testsuite=unit --coverage-clover coverage.xml
echo -e "\nPHPUnit acceptance tests\n"
./bin/console cache:clear --env=test --no-warmup
APP_ENV=test XDEBUG_MODE=coverage ./vendor/bin/phpunit --configuration=./tests/phpunit.xml --testsuite=functional --coverage-clover coverage.xml
echo -e "\nPHPUnit integration tests\n"
XDEBUG_MODE=coverage ./vendor/bin/phpunit --configuration=./tests/phpunit.xml --testsuite=integration --coverage-clover coverage.xml