-
Notifications
You must be signed in to change notification settings - Fork 83
Add wp-tester for smoke testing across PHP and WordPress versions #2806
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
base: trunk
Are you sure you want to change the base?
Conversation
50f9b2a to
8ab5215
Compare
|
Thanks for trying WP Tester @pfefferle! I'm taking a look at why WP Tester can't correctly detect PHPUnit in your plugin and will let you know once I have a fix, in case you want to try it. |
|
thanks @bgrgicak ! I think I found the issue: bgrgicak/wp-tester#167 |
|
I just released I had to remove your Blueprints from the config as they try to install the plugin from WordPress.org, and that conflicts with WP Tester, which mounts the local plugin and activates it. FYI, the test result output isn't great, and I plan to significantly improve it in the next release. |
0bb0767 to
8a4403e
Compare
Configures wp-tester to run WordPress and plugin smoke tests using WordPress Playground across PHP 7.4/8.2/8.3 and WP 6.5/latest. Uses existing blueprint to activate the plugin during tests. Adds `npm run test:smoke` command to run the tests locally.
- Remove blueprints that conflict with WP Tester's local plugin mounting - Add PHPUnit configuration for running unit tests - Add wp-tester.json to distignore
8a4403e to
8311215
Compare
|
Updated based on @bgrgicak's feedback:
|
|
@bgrgicak if I remove the blueprint, then the |
This is because your local plugin directory is named differently from the plugin slug ( I still need to find a good way for WP Tester to deal with situations where the plugin directory on the host machine doesn't match the plugin slug. |
Bump @wp-tester/cli and related packages to 0.1.2, update rollup and its platform-specific builds to 4.56.0, and update several dev dependencies including @vitest packages and nan. Adds async-mutex as a new dependency for @wp-tester/runtime. These updates improve compatibility, stability, and include the latest bug fixes.
Proposed changes:
npm run test:smokecommand for local testingOther information:
Testing instructions:
npm run test:smokelocallyChangelog entry
Changelog Entry Details
Significance
Type
Message
Add wp-tester for smoke testing plugin activation across PHP and WordPress versions.