Move to apparition for integration tests

This commit is contained in:
wvengen 2019-10-28 09:39:32 +01:00 committed by wvengen
parent 8823ca2060
commit 6d9c35db20
13 changed files with 65 additions and 53 deletions

View file

@ -5,13 +5,5 @@ unset DATABASE_URL; export DATABASE_URL
[ "$TEST_DATABASE_URL" ] && export DATABASE_URL="$TEST_DATABASE_URL"
export RAILS_ENV=test
# Start virtuals X environment to allow integration testing via firefox/iceweasel
export DISPLAY=:99
Xvfb $DISPLAY -nolisten tcp &
XVFB_PID=$!
# Start tests
bundle exec rspec $@
# Cleanup
kill $XVFB_PID