Skip to content

Instantly share code, notes, and snippets.

@rasmar
Last active March 9, 2018 12:14
Show Gist options
  • Save rasmar/34390f91644ce82bc5a737f0cfbc686e to your computer and use it in GitHub Desktop.
Save rasmar/34390f91644ce82bc5a737f0cfbc686e to your computer and use it in GitHub Desktop.
E2E - backend start script
#!/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