Skip to content

Add --recreate-db option to install-wp-tests.sh - #320

Closed
vcanales wants to merge 4 commits into
wp-cli:mainfrom
vcanales:add-recreate-db-option
Closed

vcanales wants to merge 4 commits into
wp-cli:mainfrom
vcanales:add-recreate-db-option

Conversation

@vcanales

@vcanales vcanales commented Jun 9, 2023

Copy link
Copy Markdown

This adds a --recreate-db option to remove the need for user input when running the
script for confirming database recreation, helpful when it is run in a CI context, such as a part of a GitHub Action. The command can be safely run without flags, and it will respect the order of the other options.

Also, refactors the help message and when it is printed.

This adds an option to remove the need for user input when running the
script for confirming database recreation,  helpful when it is run in a
CI context, such as a part of a GitHub Action.

Also refactors the help message, and when it is printed.
@vcanales
vcanales requested a review from a team as a code owner June 9, 2023 18:18

@danielbachhuber danielbachhuber left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the pull request, @vcanales !

Can you add a corresponding scenario to features/install-wp-tests.feature?

@danielbachhuber danielbachhuber changed the title Add --recreate-db option Add --recreate-db option to install-wp-tests.sh Jul 21, 2023
@davidperezgar

Copy link
Copy Markdown

I see that the test is added.

@vcanales vcanales closed this Sep 15, 2025
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.

3 participants