Last active
March 4, 2016 22:10
-
-
Save miketaylr/8f297b397314aec6eaf8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
user=USER pw=PASSWORD
-- good to use test account credentials here, but any will do.