Last active
March 9, 2018 12:14
-
-
Save rasmar/34390f91644ce82bc5a737f0cfbc686e to your computer and use it in GitHub Desktop.
E2E - backend start script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Setting up and running e2e tests!" | |
# Create database and seed (since we might want to include some data needed for our app to work properly like oauth clients | |
rails db:setup | |
# Start puma server in e2e environment on meta-address host on port 5001 in detached mode | |
RAILS_ENV=e2e puma -b tcp://0.0.0.0:5001 -d | |
# Start feature specs and output results to xml file | |
rspec --format progress --format RspecJunitFormatter --out ./rspec_output/rspec.xml spec/features |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment