Merge pull request #253 from wp-cli/try/fix-coverage

Fix code coverage collection test
This commit is contained in:
Pascal Birchler 2025-03-09 17:53:03 +01:00 committed by GitHub
commit ac64ad90b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 10 deletions

View file

@ -40,7 +40,7 @@ Feature: Scaffold a README.md file for an existing package
And the {PACKAGE_PATH}/local/wp-cli/default-readme/README.md file should exist
And the {PACKAGE_PATH}/local/wp-cli/default-readme/README.md file should contain:
"""
Installing this package requires WP-CLI v2.5 or greater. Update to the latest stable release with `wp cli update`.
Installing this package requires WP-CLI v2.11 or greater. Update to the latest stable release with `wp cli update`.
"""
And the {PACKAGE_PATH}/local/wp-cli/default-readme/README.md file should contain:
"""
@ -76,7 +76,7 @@ Feature: Scaffold a README.md file for an existing package
And the {PACKAGE_PATH}/local/wp-cli/custom-branch/README.md file should exist
And the {PACKAGE_PATH}/local/wp-cli/custom-branch/README.md file should contain:
"""
Installing this package requires WP-CLI v2.5 or greater. Update to the latest stable release with `wp cli update`.
Installing this package requires WP-CLI v2.11 or greater. Update to the latest stable release with `wp cli update`.
"""
And the {PACKAGE_PATH}/local/wp-cli/custom-branch/README.md file should contain:
"""
@ -152,10 +152,10 @@ Feature: Scaffold a README.md file for an existing package
"files": [ "command.php" ]
},
"require": {
"wp-cli/wp-cli": "^2.5"
"wp-cli/wp-cli": "^2.11"
},
"require-dev": {
"wp-cli/wp-cli-tests": "^3.0.11"
"wp-cli/wp-cli-tests": "^4.3.9"
},
"extra": {
"readme": {
@ -333,7 +333,7 @@ Feature: Scaffold a README.md file for an existing package
},
"require-dev": {
"wp-cli/wp-cli": "*",
"wp-cli/wp-cli-tests": "^3.0.11"
"wp-cli/wp-cli-tests": "^4.3.9"
},
"extra": {
"bundled": true

View file

@ -34,7 +34,7 @@ Feature: Scaffold WP-CLI commands
And the {PACKAGE_PATH}/local/wp-cli/foo/composer.json file should contain:
"""
"require": {
"wp-cli/wp-cli": "^2.5"
"wp-cli/wp-cli": "^2.11"
},
"""
And the {PACKAGE_PATH}/local/wp-cli/foo/hello-world-command.php file should exist
@ -159,7 +159,7 @@ Feature: Scaffold WP-CLI commands
s
"""

When I run `wp scaffold package wp-cli/same-package --skip-tests --skip-github`
When I try `wp scaffold package wp-cli/same-package --skip-tests --skip-github`
Then STDOUT should contain:
"""
Success: Created package files
@ -176,7 +176,7 @@ Feature: Scaffold WP-CLI commands
"""
And the return code should be 0

When I run `wp package uninstall wp-cli/same-package`
When I try `wp package uninstall wp-cli/same-package`
Then STDOUT should contain:
"""
Success: Uninstalled package.

View file

@ -43,13 +43,13 @@ class ScaffoldPackageCommand {
* [--require_wp_cli=<version>]
* : Required WP-CLI version for the package.
* ---
* default: ^2.5
* default: ^2.11
* ---
*
* [--require_wp_cli_tests=<version>]
* : Required WP-CLI testing framework version for the package.
* ---
* default: ^3.0.11
* default: ^4.3.9
* ---

* [--skip-tests]