WordPress / playground-tools

GNU General Public License v2.0
127 stars 39 forks source link

wp-now feature request : run phpunit tests within wp-now #321

Closed lgersman closed 2 days ago

lgersman commented 4 days ago

It would be a bummer if wp-now could be used to run PHPUnit testcases.

Right now I used to use wp-env for running PHPUnit tests in the CI pipeline. But wp-env is huge in terms of required ressources.

If wp-now would be able to run PHPUnit tests right in the browser, all testing (both e2e and PHPUNit) could be done using only the playwright framework. So much leaner than wp-env ...

I could find only a short notice in #28 that PHPUnit is not working.

What's the concrete problem ?

adamziel commented 3 days ago

@lgersman This is a larger Playground issue tracked in https://github.com/WordPress/wordpress-playground/issues/111. I wonder how many PHPUnit tests would actually pass today, I haven't checked for a while. Would you be game for exploring?

lgersman commented 3 days ago

Hi @adamziel,

for whatever reason i did not realized #11 before 😅.

Will have a look into it.

Thanks.

adamziel commented 2 days ago

Closing as a duplicate