Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
Needed to test fucntionality of the profile page and moved test images to its own subfolder

Created new scenario 'change profile avatar' and moved test images to 'tests' subfolder in 'public/images'
2 contributors

Users who have contributed to this file

@dhirk @townse41
executable file 25 lines (17 sloc) 543 Bytes
#!/usr/bin/env bash
# force the script to exit on first fail
set -e
# create any directories needed by the test script
mkdir -p screenshots
# delete any local databases (if you are using them)
rm -rf *.db
# install packages if none found
# [ ! -d "node_modules" ] && echo "INSTALLING MODULES" && npm install
# start the web server in background mode
node index.js&
# run the test suite in background mode
node_modules/.bin/cucumber-js ./features -r ./steps &
# wait for the tests to complete
sleep 100
# kill the web server
pkill node