wp-cli-tests
wp-cli-tests copied to clipboard
WP-CLI testing framework
## Summary This PR aims to add a script which helps to determine the semver for passed `WP_VERSION` env variable. To do so correctly, this script uses `composer/semver` package. Example...
It would be useful to add PHPStan static analysis support to this package and improve the code quality throughout the code base. This way the individual commands don't all have...
Bug Ticket: https://github.com/wp-cli/ideas/issues/194 This PR should fix the `composer prepare-tests` command issue on the [wp-cli-dev](https://github.com/wp-cli/wp-cli-dev) repo existing for anyone running sql version 8.0.4+
In #234 we added Behat code coverage support which works great except for a few minor issues. See also [this related Slack discussion](https://wordpress.slack.com/archives/C02RP4T41/p1741360440601989). **Incorrect autoload require statement here:** https://github.com/wp-cli/wp-cli-tests/blob/16ee1c9ad7443a1a3ba8a48341f13dc74efc1083/utils/generate-coverage.php#L16-L18 The...
- [x] Understand the repository structure and existing Behat steps - [x] Analyze all Given/When/Then step definitions to identify what needs testing - [x] Create a comprehensive feature file testing...
Fix MariaDB detection to query server version instead of client version **Problem**: The current implementation queries the version of the mysql/mariadb client binary, but we need the database server version...
## Summary Successfully improved Behat output to include diffs on failed comparisons, making it much easier to debug test failures. ### Completed Tasks - [x] Add sebastian/diff v3 as a...
The change in https://github.com/wp-cli/wp-cli-tests/pull/246 fixes the issue of allowing different client binary names. However, I now realized that we're still using a faulty approach to even try to detect MySQL...
I'm trying to improve Windows support a little bit so that tests could run on CI. Doing things in PHP vs. CLI commands is one step. Lots of AI code...
This logic was previously in the reusable workflow in the `wp-cli/.github` repo, but in https://github.com/wp-cli/.github/pull/157 I removed it (mostly by accident). I forgot that `wp-cli/wp-cli-bundle` runs tests with Behat 3.15...