Skip to content

Commit d64f1d7

Browse files
Copilotswissspidy
andauthored
Avoid package install side effects in README Behat scenarios
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
1 parent 82a2074 commit d64f1d7

1 file changed

Lines changed: 2 additions & 14 deletions

File tree

features/scaffold-package-readme.feature

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Feature: Scaffold a README.md file for an existing package
9494
Scenario: Scaffold a README.md requiring a nightly build
9595
Given an empty directory
9696

97-
When I run `wp scaffold package wp-cli/foo --dir=foo --require_wp_cli='>=0.24.0-alpha'`
97+
When I run `wp scaffold package wp-cli/foo --dir=foo --require_wp_cli='>=0.24.0-alpha' --skip-install`
9898
Then STDOUT should contain:
9999
"""
100100
Success: Created package readme.
@@ -110,16 +110,10 @@ Feature: Scaffold a README.md file for an existing package
110110
"""
111111
Installing this package requires WP-CLI v0.24.0-alpha or greater. Update to the latest nightly release with `wp cli update --nightly`.
112112
"""
113-
When I run `wp package uninstall wp-cli/foo`
114-
Then STDOUT should contain:
115-
"""
116-
Success: Uninstalled package.
117-
"""
118-
119113
Scenario: Scaffold a README.md requiring the latest stable release
120114
Given an empty directory
121115

122-
When I run `wp scaffold package wp-cli/foo --dir=foo --require_wp_cli='*'`
116+
When I run `wp scaffold package wp-cli/foo --dir=foo --require_wp_cli='*' --skip-install`
123117
Then STDOUT should contain:
124118
"""
125119
Success: Created package readme.
@@ -135,12 +129,6 @@ Feature: Scaffold a README.md file for an existing package
135129
"""
136130
Installing this package requires WP-CLI's latest stable release. Update to the latest stable release with `wp cli update`.
137131
"""
138-
When I run `wp package uninstall wp-cli/foo`
139-
Then STDOUT should contain:
140-
"""
141-
Success: Uninstalled package.
142-
"""
143-
144132
Scenario: Scaffold a readme with custom shields
145133
Given an empty directory
146134
And a foo/composer.json file:

0 commit comments

Comments
 (0)