-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.sh
39 lines (32 loc) · 955 Bytes
/
test.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
#!/bin/bash
R='\033[0;31m'
G='\033[0;32m'
# ------------------------------------------ #
# Testing Framework
# ------------------------------------------ #
echo -e "${R}Testing Framework (Unit)..."
echo -e "${G}"
./App/vendor/bin/phpunit --bootstrap ../../../test.php ./App/vendor/floatphp/kernel/tests
echo "";
sleep 2
# ------------------------------------------ #
# Testing App
# ------------------------------------------ #
echo -e "${R}Testing App (Unit)..."
echo -e "${G}"
./App/vendor/bin/phpunit --bootstrap ./test.php ./tests
echo "";
sleep 2
# ------------------------------------------ #
# Testing App (Stress)
# ------------------------------------------ #
echo -e "${R}Testing App (Stress)..."
echo -e "${G}"
./App/vendor/bin/phpunit --bootstrap ./test.php ./tests/stress
echo "";
sleep 2
# ------------------------------------------ #
# Done
# ------------------------------------------ #
echo -e "${B}Done! press [Enter]"
read PAUSE