1 |
|
2 |
|
3 | welcome() {
|
4 | clear
|
5 | echo ' _____ _____ _____ _____ _____ _ _ _____ '
|
6 | echo '|_ _|| ___|/ ___||_ _||_ _|| \ | || __ \ '
|
7 | echo ' | | | |__ \ `--. | | | | | \| || | \/ '
|
8 | echo ' | | | __| `--. \ | | | | | . ` || | __ '
|
9 | echo ' | | | |___ /\__/ / | | _| |_ | |\ || |_\ \ '
|
10 | echo ' \_/ \____/ \____/ \_/ \___/ \_| \_/ \____/ '
|
11 | echo
|
12 | }
|
13 |
|
14 | run() {
|
15 | "$PWD"/node_modules/.bin/mocha \
|
16 | -b \
|
17 | --compilers coffee:coffee-script/register \
|
18 | --require should \
|
19 | --reporter spec \
|
20 | --timeout 120000 \
|
21 | --slow 300 \
|
22 | "$@"
|
23 | }
|
24 |
|
25 |
|
26 | welcome && run \
|
27 | test/test.coffee
|
28 |
|
29 |
|