Helper script to execute easier local browser tests.

This commit is contained in:
Martin Edenhofer 2013-06-13 08:16:26 +02:00
parent c2010124f5
commit a672b0a692

28
script/local_browser_tests.sh Executable file
View file

@ -0,0 +1,28 @@
#!/bin/bash
while true; do
read -p "Do you wish to drop database ane execute all browser tests?" yn
case $yn in
[Yy]* ) echo "Start tests..."; break;;
[Nn]* ) exit;;
* ) echo "Please answer yes or no.";;
esac
done
bundle install
rm -rf tmp/cache/file_store
rake db:drop
rake db:create
rake db:migrate
rake db:seed
thin start --threaded -d -p 4444
sleep 15
rake test:browser["BROWSER_URL=http://localhost:4444"]
thin stop