test.sh 278 B

1234567891011121314
  1. #!/bin/bash
  2. set -e
  3. if [ $TESTNAME = "unit-tests" ]; then
  4. echo "Running unit-tests"
  5. export DISPLAY=:99.0
  6. sh -e /etc/init.d/xvfb start
  7. sleep 1
  8. npm run test
  9. npm run codecov
  10. elif [ $TESTNAME = "browser-tests" ]; then
  11. echo "Running browser-tests"
  12. npm run test:ci
  13. fi