-
Notifications
You must be signed in to change notification settings - Fork 0
/
runTest.sh
45 lines (38 loc) · 1.13 KB
/
runTest.sh
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
40
41
42
43
44
45
#!/bin/bash
echo "================================"
echo " Tests"
echo "================================"
echo ""
echo ""
echo "----------------"
echo " Fresh start from a new DB"
echo "----------------"
APP_ENV=test ./bin/console d:d:d -n --if-exists --force
APP_ENV=test ./bin/console d:d:c
APP_ENV=test ./bin/console d:m:mi -n
APP_ENV=test ./bin/console d:f:l -n --group=test
echo ""
echo "----------------"
echo " Running Smoke tests on the Back Office"
echo "----------------"
APP_ENV=test ./bin/phpunit tests/Back/SmokeTest.php
echo ""
echo "----------------"
echo " Running Unit tests"
echo "----------------"
echo "TODO..."
echo ""
echo "----------------"
echo " Running Functionnal tests on our BackOffice Controllers"
echo "----------------"
APP_ENV=test ./bin/phpunit tests/Back/Controller/DeliveryPointController.php
echo ""
echo "----------------"
echo " Running Smoke tests on the API"
echo "----------------"
APP_ENV=test ./bin/phpunit tests/Api/SmokeTest.php
echo ""
echo "----------------"
echo " Running Functionnal tests on our API Controllers"
echo "----------------"
APP_ENV=test ./bin/phpunit tests/Api/Controller/UserController.php