Skip to content

Commit

Permalink
Added SPEC=... to set path to .feature file to run tests from
Browse files Browse the repository at this point in the history
  • Loading branch information
Marketionist committed Mar 11, 2018
1 parent 1795588 commit a9e278d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cucumber.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
node_modules/http-server/bin/http-server ./test/demo-app -p 9000 > /dev/null &
server=$!
#Run tests
./node_modules/.bin/wdio test/wdio.conf.js
#Use SPEC="..." to set path to .feature file to run tests from
if [ "$SPEC" == "" ]; then
./node_modules/.bin/wdio test/wdio.conf.js
else
./node_modules/.bin/wdio test/wdio.conf.js --spec "$SPEC"
fi
#Kill server after run
kill -9 ${server}

0 comments on commit a9e278d

Please # to comment.