Created
August 21, 2017 13:17
-
-
Save imRohan/44b75419ca1aa3a5422c99b91a6d416a to your computer and use it in GitHub Desktop.
Nightwatch Automated Start Bash Script
This file contains 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
#!/bin/bash | |
driver=$1 | |
if [[ $# -ne 1 ]]; then | |
echo "Please provide a driver name (chrome or firefox)" | |
exit 1 | |
fi | |
echo "Setting up a virtual display using Xvfb..." | |
Xvfb :1 -screen 0 1024x768x16 & > ./logs/xvfb-log.txt | |
echo "Running tests in ${driver} environment..." | |
DISPLAY=:1.0 nightwatch --env ${driver} --verbose |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment