Skip to content

Commit

Permalink
Fixed cucumber.sh exit status
Browse files Browse the repository at this point in the history
  • Loading branch information
Marketionist committed Mar 11, 2018
1 parent a9e278d commit 64c2eb1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions cucumber.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,19 @@ if [ "$SPEC" == "" ]; then
else
./node_modules/.bin/wdio test/wdio.conf.js --spec "$SPEC"
fi

#Check and save the status of tests run
if [ $? -eq 0 ]
then
echo "Cucumber run success"
STATUS=0
else
echo "Cucumber run had errors"
STATUS=1
fi

#Kill server after run
kill -9 ${server}

#Exit with proper status
exit $STATUS

0 comments on commit 64c2eb1

Please # to comment.