cypressRunVagrant.sh 424 B

123456789101112
  1. #!/bin/bash
  2. # args:
  3. # $1: The Vagrant VM to test against. If blank and only one VM is provisioned, it will use that.
  4. IP=$(vagrant ssh-config $1 | grep HostName | awk '{print $2}')
  5. BASE_URL="http://$IP:1337/"
  6. echo "IP: $IP, BaseURL: $BASE_URL"
  7. # Only run the general test, as we cannot easily switch out configs in VMs yet.
  8. ./node_modules/.bin/cypress run --headless -c baseUrl=$BASE_URL -s cypress/integration/general/*