a6a82ec3
Tallys Martins
Add scripts to ru...
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
GREEN='\033[1;32m'
RED='\033[1;31m'
NC='\033[0m'
printf "${GREEN}=================================\n"
printf "GovUserPlugin:UNITS${NC}\n"
rake test:units TEST=plugins/gov_user/test/unit/*
units=$?
printf "${GREEN}=================================\n"
printf "GovUserPlugin:FUNCTIONALS${NC}\n"
rake test:functionals TEST=plugins/gov_user/test/functional/*
functionals=$?
printf "${GREEN}=================================\n"
printf "GovUserPlugin:SELENIUM${NC}\n"
|
39855a9c
Tallys Martins
Added travis CI
|
17
|
ruby -S cucumber FEATURE=plugins/gov_user/features/* -p software_communities_selenium --format progress
|
a6a82ec3
Tallys Martins
Add scripts to ru...
|
18
19
20
21
|
selenium=$?
printf "${GREEN}=================================\n"
printf "GovUserPlugin:CUCUMBER${NC}\n"
|
39855a9c
Tallys Martins
Added travis CI
|
22
|
ruby -S cucumber FEATURE=plugins/gov_user/features/* -p software_communities --format progress
|
a6a82ec3
Tallys Martins
Add scripts to ru...
|
23
24
25
26
27
28
29
30
31
|
cucumber=$?
if [ $units -ne 0 ] || [ $functionals -ne 0 ] || [ $selenium -ne 0 ] || [ $cucumber -ne 0 ]; then
printf "${RED}=================================\n"
printf "ERROR RUNNING GOV USER PLUGIN TESTS${NC}\n"
exit 1
fi
exit 0
|