Skip to content

Helper command 3rd party addons#119

Merged
bserem merged 3 commits intoAnnertech:mainfrom
waako:101_helper_command_3rd_party_addons
Apr 16, 2026
Merged

Helper command 3rd party addons#119
bserem merged 3 commits intoAnnertech:mainfrom
waako:101_helper_command_3rd_party_addons

Conversation

@waako
Copy link
Copy Markdown
Contributor

@waako waako commented Apr 15, 2026

Related to #101

Creates a "simple" helper command for checking if an add-on is installed by looking if add-on manifest exists in .ddev/addon-metadata.
Intended to be leverage by other commands.

Updated tests command to leverage check-addon helper command for backstopJS and Cypress, both of which require ddev add-ons to run.

Prompts user to install add-on, if they decline it informs that tests will not be available, and does not show the relevant tests commands.

waako added 2 commits April 15, 2026 17:19
Takes arguments for:
- add-on repo: required
- context (string): optional, e.g. Backstop tests explains why add-on needed
checks if relevant ddev add-on is installed, otherwise offers
to install it.
If user declines then tell them won't be available and do not
show the test commands.
Formatting issues and spacing
@waako
Copy link
Copy Markdown
Contributor Author

waako commented Apr 16, 2026

Examples of output, context is BackstopJS and Cypress tests exist

  1. No add-ons installed and user declines to install:
    ddev-tests-decline-backstop-cypress
  2. Install backstop add-on, decline cypress add-on:
    ddev-tests-backstop-install-cypress-decline
  3. Backstop installed, decline install Cypress:
    ddev-tests-cypress-decline
  4. Accept install Cypress add-on:
    ddev-tests-cypress-install

@bserem bserem merged commit 99a96fa into Annertech:main Apr 16, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants