extension-command/features/plugin-install-github-latest.feature
Pascal Birchler 9ebd7b8e20
Tag external tests with @github-api
Aims to avoid issues with GitHub rate limits on CI
2026-03-03 10:16:45 +01:00

19 lines
641 B
Gherkin

Feature: Install WordPress plugins from GitHub
@github-api
Scenario: Verify that providing a plugin releases/latest GitHub URL will get the latest ZIP
Given a WP install
When I run `wp plugin install https://github.com/danielbachhuber/one-time-login/releases/latest`
Then STDOUT should contain:
"""
Latest release resolved to Version
"""
And STDOUT should contain:
"""
package from https://api.github.com/repos/danielbachhuber/one-time-login/zipball/
"""
And STDOUT should contain:
"""
Plugin installed successfully.
Success: Installed 1 of 1 plugins.
"""