Skip to content

Commit

Permalink
Reconsiling test wrapper with #2, adding URL argument
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Bezzubov committed Dec 24, 2014
1 parent 282ce42 commit d4c800c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions spec/acceptance_test → test_sepc
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,20 @@

#TODO(alex): check if node\npm availabe, fail gracefully if not

cd ./spec

if [[ ! -d 'node_modules' ]]; then
echo "Installing dependencies though NPM"
npm install
fi

if [[ "$#" -ne 1 ]]; then
url="http://localhost:8080"
else
url="$1"
fi

echo "Runing tests"
npm test "$@"

cd -

0 comments on commit d4c800c

Please sign in to comment.