| Current File : /home/jvzmxxx/wiki/extensions/MobileFrontend/dev-scripts/cucumber_check.sh |
#!/usr/bin/env bash
# http://rvm.io/workflow/scripting
# Load RVM into a shell session *as a function*
if [[ -s "$HOME/.rvm/scripts/rvm" ]] ; then
# First try to load from a user install
source "$HOME/.rvm/scripts/rvm"
elif [[ -s "/usr/local/rvm/scripts/rvm" ]] ; then
# Then try to load from a root install
source "/usr/local/rvm/scripts/rvm"
else
echo "You need to install rvm and Ruby to run Cucumber tests!"
echo "See http://rvm.io/"
exit 1
fi
# http://stackoverflow.com/a/246128/365238
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
echo "Checking required dependencies..."
cd "$DIR/../tests/browser"
bundle install
echo "Generating report for cucumber tests to surface unused rules and unmatched steps..."
bundle exec cucumber --dry-run -f stepdefs