-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathphpunit.sh
More file actions
executable file
·41 lines (32 loc) · 1.39 KB
/
phpunit.sh
File metadata and controls
executable file
·41 lines (32 loc) · 1.39 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
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/env bash
set -e
cd $(dirname $0)/../../
chown -R www-data app/cache/
mkdir -p /tmp/eb-fixtures
chmod -R 0777 /tmp/eb-fixtures
echo "====================================================="
echo "Installing database fixtures..."
echo "====================================================="
./app/console doctrine:schema:drop --force --env=ci
./app/console doctrine:schema:create --env=ci
echo
echo "====================================================="
echo "PHPUnit legacy tests"
echo "====================================================="
./vendor/bin/phpunit --configuration=./tests/phpunit.xml --testsuite=eb4 --coverage-text
echo
echo "====================================================="
echo "PHPUnit unit tests"
echo "====================================================="
./vendor/bin/phpunit --configuration=./tests/phpunit.xml --testsuite=unit --coverage-text
echo
echo "====================================================="
echo "PHPUnit API acceptance tests"
echo "====================================================="
APP_ENV=ci ./vendor/bin/phpunit --configuration=./tests/phpunit.xml --testsuite=functional --coverage-text
echo
echo "====================================================="
echo -e "PHPUnit integration tests"
echo "====================================================="
./vendor/bin/phpunit --configuration=./tests/phpunit.xml --testsuite=integration --coverage-text
echo