mirror of
https://ghproxy.net/https://github.com/wp-cli/scaffold-package-command.git
synced 2025-10-04 05:10:07 +08:00
Merge pull request #253 from wp-cli/try/fix-coverage
Fix code coverage collection test
This commit is contained in:
commit
ac64ad90b6
3 changed files with 10 additions and 10 deletions
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue