Helper script to execute easier local browser tests.
This commit is contained in:
parent
c2010124f5
commit
a672b0a692
1 changed files with 28 additions and 0 deletions
28
script/local_browser_tests.sh
Executable file
28
script/local_browser_tests.sh
Executable 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
|
||||||
|
|
Loading…
Reference in a new issue