diff --git a/bin/coco-client-test-runner b/bin/coco-client-test-runner index fa88b51b6..2ec45aa29 100755 --- a/bin/coco-client-test-runner +++ b/bin/coco-client-test-runner @@ -1,7 +1,14 @@ #!/bin/bash +# full script path include his name +_script="$(readlink -f ${BASH_SOURCE[0]})" + +# Script location path (dir) +_base="$(dirname $_script)" + sleep 5 -cd ~/Desktop/coco +cd $_base +cd ../ until node_modules/karma/bin/karma start; do echo "Karma crashed with exit code $?. Respawning.." >&2 sleep 1 diff --git a/bin/coco-server-test-runner b/bin/coco-server-test-runner index 703db7f94..14310bd78 100755 --- a/bin/coco-server-test-runner +++ b/bin/coco-server-test-runner @@ -1,5 +1,11 @@ #!/bin/bash -#sleep 5 -cd ~/Desktop/coco +# full script path include his name +_script="$(readlink -f ${BASH_SOURCE[0]})" + +# Script location path (dir) +_base="$(dirname $_script)" + +cd $_base +cd ../ node_modules/jasmine-node/bin/jasmine-node test/server/ --coffee --autotest --captureExceptions diff --git a/bin/coco-test-server b/bin/coco-test-server index 371a76312..f9856b86b 100755 --- a/bin/coco-test-server +++ b/bin/coco-test-server @@ -1,4 +1,11 @@ #!/bin/bash -cd ~/Desktop/coco +# full script path include his name +_script="$(readlink -f ${BASH_SOURCE[0]})" + +# Script location path (dir) +_base="$(dirname $_script)" + +cd $_base +cd ../ node_modules/.bin/nodemon . --ext ".coffee|.js" --watch server --watch server.coffee --unittest