You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f9a9003
Browse filesBrowse the repository at this point in the historyBrowse files
Scenarios the environment cannot run, or that belong to another
configuration, were filtered out without a word. List them before the run
with the reason, separating what the environment lacks from what is not
part of the configuration being tested, and add the list to the job summary
on GitHub Actions.
With WP_CLI_TEST_STRICT_REQUIREMENTS set, the run stops before any scenario
starts when the environment lacks something, or when the database cannot
be reached, instead of leaving scenarios out or falling back to SQLite.
The database check no longer needs the test database to exist, which the
scenarios drop themselves, so that a run no longer falls back to SQLite
just because the previous one left no test database behind.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
"Feature: Report\n\n @require-extension-wpclinonexistent\n Scenario: Needs an extension\n Given a step\n\n @broken\n Scenario: Broken\n Given a step\n\n Scenario: Runs\n Given a step\n\"\"\"\n Scenario: Not a scenario of this file\n\"\"\"\n"
$this->assertStringContainsString( 'Not running 2 of 3 scenarios:', $result['stderr'] );
628
+
$this->assertStringContainsString( 'Not available in this environment:', $result['stderr'] );
629
+
$this->assertStringContainsString( '@require-extension-wpclinonexistent, as the PHP extension "wpclinonexistent" is not loaded: ', $result['stderr'] );
$this->assertStringContainsString( 'Stopping, as WP_CLI_TEST_STRICT_REQUIREMENTS is set and 1 scenarios cannot run in this environment.', $result['stderr'] );
0 commit comments