run.sh 323 B

12345678910111213141516
  1. #!/bin/bash
  2. if [ $# -lt 1 ]; then
  3. echo "Error: Please specify a browser target argument"
  4. exit 1
  5. fi
  6. bin_path=node_modules/.bin
  7. browser=$1
  8. shift
  9. $bin_path/concurrently \
  10. --kill-others \
  11. -s first \
  12. --names \"server,test\" \
  13. "npm run testserver" \
  14. "$bin_path/testcafe $browser tests/ui/run.ts $*"