-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathphpunit.sh
More file actions
executable file
·37 lines (29 loc) · 1.31 KB
/
phpunit.sh
File metadata and controls
executable file
·37 lines (29 loc) · 1.31 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
#!/usr/bin/env bash
set -e
cd "$(dirname "$0")/../../"
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