test.sh 353 B

12345678910111213141516171819
  1. #!/bin/sh
  2. ./node_modules/jshint/bin/hint ./*
  3. hint=$?
  4. if [ $hint != 0 ]; then
  5. echo "< script runner stopped jshint failed >";
  6. exit $hint
  7. else
  8. echo "< jshint passed >";
  9. fi
  10. ./node_modules/tap/bin/tap.js ./test/*.js
  11. unit=$?
  12. if [ $unit != 0 ]; then
  13. echo "< script runner stopped unit tests failed >";
  14. exit $unit
  15. else
  16. echo "< unit tests passed >";
  17. fi