-
Notifications
You must be signed in to change notification settings - Fork 32
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
Tools: Try adding infrastructure for PHPUnit tests #299
Conversation
This reverts commit 9897577.
"wp-coding-standards/wpcs": "2.*", | ||
"wporg/wporg-repo-tools": "dev-trunk" | ||
"wp-phpunit/wp-phpunit": "~6.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm pretty sure we don't need phpunit/phpunit
or wp-phpunit/wp-phpunit
since it's using the wp-env
container & wp installation, but I've left it in from #204 in case it's necessary for running phpunit locally.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and looks good 👍
I think it would be helpful to add unit tests for the global-font changes in #297, but we need the infrastructure in place first. This forks out the phpunit code from #204, and rebases it all to the current
trunk
.To test:
yarn
to install the wp-env depcomposer update
to install the new composer depsyarn test:php
to run the tests (currently just the demo test)The actions run on this PR should also include a unit-test action.