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

Blueprint support #71

Closed
swissspidy opened this issue Nov 1, 2023 · 2 comments · Fixed by #173
Closed

Blueprint support #71

swissspidy opened this issue Nov 1, 2023 · 2 comments · Fixed by #173
Labels
enhancement New feature or request

Comments

@swissspidy
Copy link
Owner

swissspidy commented Nov 1, 2023

If a plugin requires some sort of setup before running tests. For example Yoast, WooCommerce, or Site Kit.

This could include things like setting some options, etc.

Right now this is probably best achieved by adding another plugin that does all of this. A blueprint would just make it easier.

@swissspidy swissspidy added the enhancement New feature or request label Nov 9, 2023
@swissspidy
Copy link
Owner Author

Related: a plugin might require a more complex testing setup, e.g. performing certain user interactions on a given page. That could be addressed with a blueprint-like format as well.

@swissspidy
Copy link
Owner Author

The easiest way to do this seems to be by running all tests against WordPress playground

Example WordPress/gutenberg#62692

The playground CLI is available as an npm package:

https://www.npmjs.com/package/@wp-playground/cli

https://github.com/WordPress/wordpress-playground/tree/c49a3ebaa89b265c45cb444e7b8eb2ab23dd64da/packages/playground/cli

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant