Unit test in Wordpress / Sage 10?

Hello everyone!

Apologies in advance for my English.

My message might seem strange or silly, but I’m currently trying to delve into unit testing, especially within the context of WordPress. I’ve never done unit testing on WordPress before and I would like to explore this topic further.

Is there a way to perform unit tests with Sage 10, perhaps something already integrated? Alternatively, how should I go about setting this up on my end?

Thank you in advance and I wish you a wonderful weekend! :slight_smile:

Best regards,

You mean integration tests? Yes, roots.io Bedrock supports CI testing.
E.g.:
How to Use Bedrock and Trellis at Kinsta (WordPress Development)
https://discourse.roots.io/t/trellis-deployment-with-github-actions/25410

1 Like

Here’s an example repo using wp-env and wp-phpunit to run fully bootstrapped wp unit tests

2 Likes