-
Notifications
You must be signed in to change notification settings - Fork 5
/
test.sh
executable file
·61 lines (53 loc) · 1.87 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
npm test
npm link
rm -rf test-project || true
#project base tests
echo ""
echo "-------------------------------------------------------"
echo "Testing the base project scaffold"
echo "-------------------------------------------------------"
mkdir test-project && cd test-project
cat ../test_stubs/project_answers | monument new .
npm test
#new route test
echo ""
echo "-------------------------------------------------------"
echo "Testing the new route project scaffold"
echo "-------------------------------------------------------"
cat ../test_stubs/routes_test.json > routes.json
monument routes
npm test
#new data test
echo ""
echo "-------------------------------------------------------"
echo "Testing the new data project scaffold"
echo "-------------------------------------------------------"
cat ../test_stubs/data_obj_answers | monument data obj
cat ../test_stubs/data_coll_answers | monument data coll
npm test
#project base tests
echo ""
echo "-------------------------------------------------------"
echo "Testing the base project scaffold with handlebars"
echo "-------------------------------------------------------"
cd .. && rm -rf test-project
mkdir test-project && cd test-project
cat ../test_stubs/project_answers_handlebars | monument new .
npm link monument
npm test
#new route test
echo ""
echo "-------------------------------------------------------"
echo "Testing the new route project scaffold with handlebars"
echo "-------------------------------------------------------"
cat ../test_stubs/routes_test.json > routes.json
monument routes
npm test
#new data test
echo ""
echo "-------------------------------------------------------"
echo "Testing the new data project scaffold with handlebars"
echo "-------------------------------------------------------"
cat ../test_stubs/data_obj_answers | monument data obj
cat ../test_stubs/data_coll_answers | monument data coll
npm test