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.
1 parent 5708fb7 commit 98a69afCopy full SHA for 98a69af
src/Context/WhenStepDefinitions.php
@@ -35,7 +35,7 @@ public function when_i_launch_in_the_background( $cmd ) {
35
* @When /^I (run|try) `([^`]+)`$/
36
*/
37
public function when_i_run( $mode, $cmd ) {
38
- $with_code_coverage = (string) getenv( 'BEHAT_CODE_COVERAGE' );
+ $with_code_coverage = (string) getenv( 'WP_CLI_TEST_COVERAGE' );
39
if ( \in_array( $with_code_coverage, [ 'true', '1' ], true ) ) {
40
$cmd = preg_replace( '/(^wp )|( wp )|(\/wp )/', '$1$2$3--require={PROJECT_DIR}/vendor/wp-cli/wp-cli-tests/utils/maybe-generate-wp-cli-coverage.php ', $cmd );
41
}
0 commit comments