Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #!/bin/bash
  2. if [ "${1}" = "" ]; then
  3. units=($(cd test &>/dev/null; ls))
  4. for u in "${units[@]}"; do
  5. u=$(basename "$u" .js)
  6. if ! [ $u == "clean-stacks" ]; then
  7. $BASH scripts/unit.sh "$u" || exit 1
  8. fi
  9. done
  10. else
  11. shopt -s extglob
  12. include=$(echo +(bin|lib)/$1.js)
  13. if [ -f "$include" ]; then
  14. set -x
  15. node bin/run.js test/${1}* --nyc-arg=--include="$include"
  16. else
  17. set -x
  18. node bin/run.js test/${1}* --no-cov
  19. fi
  20. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement