File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed
Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 55 - WP_CLI\Tests\Context\FeatureContext
66 paths :
77 - features
8+ extensions :
9+ DMarynicz\BehatParallelExtension\Extension : ~
Original file line number Diff line number Diff line change @@ -19,6 +19,12 @@ if [[ "$@" == *"--help"* ]]; then
1919 exit $ret
2020fi
2121
22+ PARALLEL=" "
23+ if [[ -n " ${BEHAT_PARALLEL} " ]]; then
24+ PARALLEL=" --parallel"
25+ fi
26+
27+
2228# Turn WP_VERSION into an actual number to make sure our tags work correctly.
2329if [ " ${WP_VERSION-latest} " = " latest" ]; then
2430 export WP_VERSION=$( curl -s https://api.wordpress.org/core/version-check/1.7/ | jq -r " .offers[0].current" )
@@ -45,4 +51,4 @@ export WP_CLI_TESTS_ROOT
4551BEHAT_TAGS=$( php " $WP_CLI_TESTS_ROOT " /utils/behat-tags.php)
4652
4753# Run the functional tests.
48- vendor/bin/behat --format progress " $BEHAT_TAGS " --strict " $@ "
54+ vendor/bin/behat " ${PARALLEL} " --format progress " $BEHAT_TAGS " --strict " $@ "
Original file line number Diff line number Diff line change 1212 "php" : " >=5.6" ,
1313 "behat/behat" : " ^3.7" ,
1414 "dealerdirect/phpcodesniffer-composer-installer" : " ^0.4.3 || ^0.5 || ^0.6.2 || ^0.7.1 || ^1.0.0" ,
15+ "dmarynicz/behat-parallel-extension" : " ^1.0" ,
1516 "php-parallel-lint/php-console-highlighter" : " ^1.0" ,
1617 "php-parallel-lint/php-parallel-lint" : " ^1.3.1" ,
1718 "phpcompatibility/php-compatibility" : " dev-develop" ,
You can’t perform that action at this time.
0 commit comments