Bedrock + PHPUnit + WP CLI

Hey everyone.

I just found this awesome tool, and im trying to get all together here.

For now, i have a full bedrock instalation, with composer and all the libs that i want, but im stucked at the Unit Tests.

I want to be able to test all my plugins (im skipping themes for now), and im using WP CLI to generate my initial test config. The thing is, how can i do to run “phpunit” from my root folder, and run all my tests? Should i have a single bootstrap, or multiple (for every plugin)? What about the phpunit.xml?

Can anyone give me some light here? =)

Ty!

1 Like

nefadbr,

Hello, I have the same question. Were you able to find a solution?

Thanks.

You should both read this: https://github.com/roots/trellis/issues/251

It contains a lot of discussion around this topic.

1 Like