#!/bin/bash

if [ "$OSTYPE" != "msys" ] && [ "$OSTYPE" != "win32" ] && [ "$OSTYPE" != "win64" ] && [ -d 'compile/' ]; then
    node `which istanbul` cover --report lcov _mocha -- --ui tdd --recursive --reporter spec compile/test/**/*.spec.js --timeout 100s
elif [ "$OSTYPE" == "win32" ] || [ "$OSTYPE" == "win64" ]; then
    echo "You should have installed and configured http://git-scm.com/ and run all bash command by using git-bash.exe"
elif [ -d 'compile/' ]; then
    echo "Running from git-bash without gathering coverage"
    
    node `which _mocha` --ui tdd --recursive --reporter spec compile/test/**/*.spec.js
else
   echo "Skipping testing no 'compile' folder..."
fi

#!/bin/bash

if [ "$OSTYPE" != "msys" ] && [ "$OSTYPE" != "win32" ] && [ "$OSTYPE" != "win64" ]; then
    node `which istanbul` cover --report lcov _mocha -- --ui tdd --recursive --reporter spec compile/test/**/*.spec.js --timeout 100s
elif [ "$OSTYPE" == "win32" ] || [ "$OSTYPE" == "win64" ]; then
    echo "You should have installed and configured http://git-scm.com/ and run all bash command by using git-bash.exe"
elif [ -d 'compile/' ]; then
    echo "Running from git-bash without gathering coverage"
    
    node `which _mocha` --ui tdd --recursive --reporter spec compile/test/**/*.spec.js
else
   echo "Skipping testing..."
fi

--- 
+++ 
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-if [ "$OSTYPE" != "msys" ] && [ "$OSTYPE" != "win32" ] && [ "$OSTYPE" != "win64" ]; then
+if [ "$OSTYPE" != "msys" ] && [ "$OSTYPE" != "win32" ] && [ "$OSTYPE" != "win64" ] && [ -d 'compile/' ]; then
     node `which istanbul` cover --report lcov _mocha -- --ui tdd --recursive --reporter spec compile/test/**/*.spec.js --timeout 100s
 elif [ "$OSTYPE" == "win32" ] || [ "$OSTYPE" == "win64" ]; then
     echo "You should have installed and configured http://git-scm.com/ and run all bash command by using git-bash.exe"
@@ -9,5 +9,5 @@
     
     node `which _mocha` --ui tdd --recursive --reporter spec compile/test/**/*.spec.js
 else
-   echo "Skipping testing..."
+   echo "Skipping testing no 'compile' folder..."
 fi
Update corresponding to the skeleton
