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

Unit tests #241

Open
tobeycodes opened this issue Oct 24, 2024 · 2 comments
Open

Unit tests #241

tobeycodes opened this issue Oct 24, 2024 · 2 comments

Comments

@tobeycodes
Copy link
Member

I think we should add unit testing to the scaffold rather than having to set it up on each projects. They are not always setup in the same way and I think it makes sense to be opinionated here.

Some examples of libraries we can consider using:

https://github.com/pestphp/pest
https://github.com/Brain-WP/BrainMonkey

@darylldoyle
Copy link
Collaborator

Thanks @tobeycodes, I've added this to the Internal Tools working group agenda for discussion. I also started implementing some tests in #236 which might interest you.

@tobeycodes
Copy link
Member Author

@darylldoyle #236 looks nice!

My preference here would always be unit tests rather than integration tests but I appreciate integration tests are more commonoly used for WP testing. I think they are easier to setup. write and maintain and allow you to test your code in isolation

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

No branches or pull requests

2 participants