Skip to content

Commit

Permalink
Testing build status fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Marketionist committed Mar 11, 2018
1 parent a9e278d commit 4b38593
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
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
2 changes: 1 addition & 1 deletion test/features/window.tab.manipulation.feature
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ Feature: Window/tab
Given I open "http://localhost:9000"
When I open new window
When I close current tab
Then txtHeader from main page should be present
Then txtHeader1 from main page should be present

0 comments on commit 4b38593

Please # to comment.