diff --git a/tests/travis/start_behat_tests.sh b/tests/travis/start_behat_tests.sh index 30aa7de5fbef..df7dca5b144d 100755 --- a/tests/travis/start_behat_tests.sh +++ b/tests/travis/start_behat_tests.sh @@ -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`