Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions tests/travis/start_behat_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,25 @@ else
PASSED=false
fi

if [ "$BEHAT_TAGS_OPTION_FOUND" != true ]
then
# The behat run above specified to skip scenarios tagged @skip
# Report them in a dry-run so they can be seen
# Big red error output is displayed if there are no matching scenarios - send it to null
DRY_RUN_FILE=$(mktemp)
lib/composer/bin/behat --dry-run --colors -c $BEHAT_YML --tags '@skip' $BEHAT_FEATURE 1>$DRY_RUN_FILE 2>/dev/null
if grep -q -m 1 'No scenarios' "$DRY_RUN_FILE"
then
# If there are no skip scenarios, then no need to report that
:
else
echo ""
echo "The following tests were skipped because they are tagged @skip:"
cat "$DRY_RUN_FILE"
fi
rm -f "$DRY_RUN_FILE"
fi

if [ ! -z "$SAUCE_USERNAME" ] && [ ! -z "$SAUCE_ACCESS_KEY" ] && [ -e /tmp/saucelabs_sessionid ]
then
SAUCELABS_SESSIONID=`cat /tmp/saucelabs_sessionid`
Expand Down