Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add WP CLI helper for codeception #475

Merged
merged 4 commits into from
Feb 23, 2023
Merged

Add WP CLI helper for codeception #475

merged 4 commits into from
Feb 23, 2023

Conversation

roborourke
Copy link
Contributor

WP Browser's built in WPCLI module is geared towards testing commands that are part of the application however it does not bundle any commands. We already have WPCLI available on the server so this makes it easier to interact with that bundled version.

Use case is running tasks like reindexing, cron jobs etc... that need to happen in between test steps.

tests/_support/Helper/WPCLI.php Outdated Show resolved Hide resolved
docs/testing-with-codeception.md Outdated Show resolved Hide resolved
Co-authored-by: Ryan McCue <me@ryanmccue.info>
@roborourke roborourke merged commit dd8a4da into master Feb 23, 2023
@roborourke roborourke deleted the add-wpcli-helper branch February 23, 2023 10:27
@roborourke
Copy link
Contributor Author

cc @svandragt - coming in the next major release :)

@kovshenin
Copy link
Contributor

Shall we backport this to v14? cc @mikelittle

@roborourke
Copy link
Contributor Author

I was thinking v15 is fine but up to you if it's no hassle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants