Skip to content

Instantly share code, notes, and snippets.

@miketaylr
Last active March 4, 2016 22:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miketaylr/8f297b397314aec6eaf8 to your computer and use it in GitHub Desktop.
Save miketaylr/8f297b397314aec6eaf8 to your computer and use it in GitHub Desktop.
export PATH="/Applications/Firefox.app/Contents/MacOS:$PATH"
alias intern="node_modules/.bin/intern-runner reporters=console config=tests/intern user=USER pw=PASSWORD"
# Run functional tests for webcompat.com
# Requires that the firefox binary be in $PATH
testw () {
echo "Hold on to your butts."
wd="/Users/miket/dev/compat/webcompat.com"
osascript -e "tell application \"Terminal\" to do script \"cd $wd; . env/bin/activate && python run.py\"" > /dev/null
osascript -e "tell application \"Terminal\"" \
-e "tell application \"System Events\" to keystroke \"t\" using {command down}" \
-e "do script \"cd $wd;java -jar selenium-server-standalone-2.49.1.jar\" in front window" \
-e "end tell" > /dev/null
osascript -e "tell application \"Terminal\" to do script \"cd $wd; sleep 2; intern\"" > /dev/null
}
@miketaylr
Copy link
Author

user=USER pw=PASSWORD -- good to use test account credentials here, but any will do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment