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.
How to Use Bedrock and Trellis at Kinsta (WordPress Development)

1 Like

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