From 24a4965bf18f7a99d1f0292844b51820e4fa1cf9 Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Thu, 16 Jul 2015 15:13:24 +0200 Subject: [PATCH] Added test environment env and rake calls. --- script/local_browser_tests.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/script/local_browser_tests.sh b/script/local_browser_tests.sh index 1591b48fa..5e00b6a98 100755 --- a/script/local_browser_tests.sh +++ b/script/local_browser_tests.sh @@ -50,6 +50,15 @@ sleep 15 #export REMOTE_URL='http://192.168.178.32:4444/wd/hub' #export REMOTE_URL='http://192.168.178.45:4444/wd/hub' +export RAILS_ENV=test + +echo "rake db:drop" +time rake db:drop +echo "rake db:create" +time rake db:create +echo "rake db:migrate" +time rake db:migrate + rake test:browser["BROWSER_URL=http://localhost:4444"] #rake test:browser["BROWSER_URL=http://localhost:4444 BROWSER=chrome"] #rake test:browser["BROWSER_URL=http://192.168.178.28:4444"]