Skip to content

Commit

Permalink
Merge pull request #95 from ibexa/temp_8.3_to_4.5
Browse files Browse the repository at this point in the history
Merge branch '8.3' of ezsystems/BehatBundle into 4.5
  • Loading branch information
mnocon authored Nov 3, 2023
2 parents 138b37c + 66180fe commit e3dc32f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/ibexabehat
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ CONFIG=''
OTHER_OPTIONS=''
MODE='parallel'
STRICT='--strict'
PROCESS=''
GROUP_COUNT=1
GROUP_OFFSET=0

Expand All @@ -40,6 +41,7 @@ Options:
\t -s, --suite=SUITE; Behat tests suite;
\t -t, --tags=TAGS; Behat tags filter;
\t --non-strict; Run Behat in non-strict mode;
\t --process=N; Number of parallel processes, default: available CPUs;
\t --group-count; Split the tests into multiple groups
\t --group-offset; Use together with --group-count, get Scenarios for a group
" | column -t -s ";"
Expand All @@ -57,7 +59,7 @@ behat(){
}

fastest(){
get_behat_features | "$COMPOSER_RUNTIME_BIN_DIR/fastest" --ansi -o -v "$COMPOSER_RUNTIME_BIN_DIR/behat {} ${CONFIG} ${PROFILE}${SUITE}${TAGS}--no-interaction --colors -vv ${STRICT} ${OTHER_OPTIONS}"
get_behat_features | "$COMPOSER_RUNTIME_BIN_DIR/fastest" $PROCESS --ansi -o -v "$COMPOSER_RUNTIME_BIN_DIR/behat {} ${CONFIG} ${PROFILE}${SUITE}${TAGS}--no-interaction --colors -vv ${STRICT} ${OTHER_OPTIONS}"
}

# Fastest option 'list-features' gives us the list of all features from given context in random order, which are later
Expand All @@ -82,6 +84,7 @@ case $i in
-t=*|--tags=*) TAGS="--tags=${i#*=} ";;
-c=*|--config=*) CONFIG="--config=${i#*=}";;
--non-strict) STRICT='';;
--process=*) PROCESS="--process=${i#*=}";;
--group-count=*) GROUP_COUNT=${i#*=};;
--group-offset=*) GROUP_OFFSET=${i#*=};;
-h|--help) usage; exit 1;;
Expand Down

0 comments on commit e3dc32f

Please sign in to comment.