-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_tests.sh
More file actions
77 lines (68 loc) · 1.46 KB
/
run_tests.sh
File metadata and controls
77 lines (68 loc) · 1.46 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#!/bin/bash
GREEN='\033[0;32m'
BLUE='\033[0;34m'
RESET='\033[0m'
cd Services/EnvironmentService
mvn package -DskipTests
cd target
java -jar EnvironmentService-1.0.0.jar &
ENV_SERVICE_PID=$!
echo -e "${BLUE} Environment service running on backgorund... $RESET"
sleep 3
# Authentication Service Tests
clear
echo -e "${BLUE} Starting Authentication Service Tests...${RESET}"
sleep 3
cd ../../AuthenticationService
mvn test
cd ..
kill -9 $ENV_SERVICE_PID
sleep 2
clear
echo -e "${GREEN} Completed Authentication Service Tests... $RESET"
sleep 3
#Project Service Tests
clear
echo -e "${BLUE} Starting Project Service Tests... $RESET"
sleep 5
cd ProjectService
mvn test
cd ..
sleep 2
clear
echo -e "${GREEN} Completed Project Service Tests... $RESET"
sleep 3
#Community Service Tests
clear
echo -e "${BLUE} Starting Communication Service Tests... $RESET"
sleep 5
cd CommunityService
mvn test
cd ..
sleep 2
clear
echo -e "${GREEN} Completed Communication Service Tests... $RESET"
sleep 3
#Interview Service Tests
clear
echo -e "${BLUE} Starting Interview Service Tests... $RESET"
sleep 5
cd InterviewService
mvn test
cd ..
sleep 2
clear
echo -e "${GREEN} Completed Interview Service Tests... $RESET"
sleep 3
#Task Service Tests
clear
echo -e "${BLUE} Starting Task Service Tests... $RESET"
sleep 5
cd task-service
mvn test
cd ..
sleep 2
clear
echo -e "${GREEN} Completed Task Service Tests... $RESET"
echo "---------------------------------------"
echo -e "${GREEN} Completed Unit Tests $RESET"