Skip to content

Introduce unit tests via the WordPress Core test framework #65

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Introduce unit tests via the WordPress Core test framework #65

wants to merge 1 commit into from

Conversation

stevegrunwell
Copy link

It's not much, but it's a start: using WP-CLI's wp scaffold plugin-tests command, I've introduced unit tests to the project, starting with the batcache_post() function in batcache.php.

As with most tests, the goal will be to prevent regressions and make it easier to introduce new functionality without breaking the internet (as that's typically frowned upon).

@aidvu
Copy link
Contributor

aidvu commented Oct 28, 2020

This is super nice. Would you mind revisiting and checking if they run with latest WP/PHP 7.x. I'd love to build on this work.

@Automattic Automattic deleted a comment from chaixiangjun Oct 28, 2020
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