Skip to content

Instantly share code, notes, and snippets.

@mickaelandrieu
Forked from JamieMason/run_e2e_tests
Last active August 29, 2015 14: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 mickaelandrieu/07b5e51f2a3ae523e23d to your computer and use it in GitHub Desktop.
Save mickaelandrieu/07b5e51f2a3ae523e23d to your computer and use it in GitHub Desktop.
#!/bin/bash
# Runs our end to end tests in casperjs.
# Run this script as follows from the project root;
#
# bin/run_e2e_tests
printf "\e[93m > SEARCHING FOR TEST FILES \033[0m \n"
find "$PWD" -iname "*.e2e.spec.js" -type f -print0 | while read -d '' -r file; do
"$PWD/node_modules/casperjs/bin/casperjs" test "$file"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment