Make possible to provide "--tags=XXX" parameter to Behat

"--tags=XXX" limits the features or scenarios to be run to those
matching the tag filter expression.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
Daniel Calviño Sánchez 2018-02-06 22:08:46 +01:00 committed by Roeland Jago Douma
parent 65bc12960f
commit 1d7bf328f8
No known key found for this signature in database
GPG key ID: F941078878347C0C

View file

@ -2,6 +2,12 @@
OC_PATH=../../
OCC=${OC_PATH}occ
TAGS=""
if [ "$1" = "--tags" ]; then
TAGS="--tags=$2"
shift 2
fi
SCENARIO_TO_RUN=$1
HIDE_OC_LOGS=$2
@ -52,7 +58,7 @@ if [ "$INSTALLED" == "true" ]; then
fi
vendor/bin/behat --strict -f junit -f pretty $SCENARIO_TO_RUN
vendor/bin/behat --strict -f junit -f pretty $TAGS $SCENARIO_TO_RUN
RESULT=$?
kill $PHPPID