Skip to content

Commit d4c800c

Browse files
author
Alexander Bezzubov
committed
Reconsiling test wrapper with #2, adding URL argument
1 parent 282ce42 commit d4c800c

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,20 @@
44

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

7+
cd ./spec
8+
79
if [[ ! -d 'node_modules' ]]; then
810
echo "Installing dependencies though NPM"
911
npm install
1012
fi
1113

14+
if [[ "$#" -ne 1 ]]; then
15+
url="http://localhost:8080"
16+
else
17+
url="$1"
18+
fi
19+
1220
echo "Runing tests"
1321
npm test "$@"
22+
23+
cd -

0 commit comments

Comments
 (0)