forked from mhevery/jasmine-node
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathspecs.sh
executable file
·31 lines (26 loc) · 1.15 KB
/
specs.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
#!/usr/bin/env bash
entry="node lib/jasmine-node/cli.js "
echo "Running all tests located in the spec directory"
command=$entry"spec"
echo $command
time $command #/nested/uber-nested
echo -e "\033[1;35m--- Should have 40 tests and 74 assertions and 1 Failure. ---\033[0m"
echo ""
echo "Running all tests located in the spec directory with coffee option"
command=$entry"--coffee spec"
echo $command
time $command #/nested/uber-nested
echo -e "\033[1;35m--- Should have 43 tests and 77 assertions and 2 Failures. ---\033[0m"
echo ""
echo "Running all tests located in the spec directory with requirejs option"
#command=$entry"--nohelpers --runWithRequireJs spec-requirejs"
command=$entry"--runWithRequireJs ./"
echo $command
time $command
echo -e "\033[1;35m--- Should have 41 tests and 76 assertions and 1 Failure. ---\033[0m"
echo ""
echo "Running all tests located in the spec-requirejs directory with requirejs, requirejs setup, and coffee option"
command=$entry"--runWithRequireJs --requireJsSetup spec-requirejs/requirejs-setup.js --coffee spec-requirejs"
echo $command
time $command
echo -e "\033[1;35m--- Should have 4 tests and 7 assertions and 0 Failure. ---\033[0m"