We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5b42c27 + d37afa8 commit 6d3fef9Copy full SHA for 6d3fef9
bin/run-behat-tests
@@ -44,5 +44,10 @@ export WP_CLI_TESTS_ROOT
44
# Generate the tags to apply environment-specific filters.
45
BEHAT_TAGS=$(php "$WP_CLI_TESTS_ROOT"/utils/behat-tags.php)
46
47
+BEHAT_EXTRA_ARGS=()
48
+if [[ "${WP_CLI_TEST_COVERAGE}" == "true" ]] && vendor/bin/behat --help 2>/dev/null | grep -q 'xdebug'; then
49
+ BEHAT_EXTRA_ARGS+=('--xdebug')
50
+fi
51
+
52
# Run the functional tests.
-vendor/bin/behat --format progress "$BEHAT_TAGS" --strict "$@"
53
+vendor/bin/behat --format progress "$BEHAT_TAGS" --strict "${BEHAT_EXTRA_ARGS[@]}" "$@"
0 commit comments