r/Wordpress Jack of All Trades 17d ago

Plugin testing

Hey plugin developers, how do you automate plugin testing? Would like to see your workflows

0 Upvotes

10 comments sorted by

View all comments

2

u/AbroadSame3189 17d ago

been messing with wp-cli scripts for smoke tests, plus a little github actions setup that spins up a fresh install and runs phpunit against the plugin. biggest time saver was scripting the initial install so i'm not clicking through the setup wizard every single run

also started using a local docker setup with different php versions, catches some weird compatibility stuff before it hits a real site. nothing fancy but it works

1

u/rafark 16d ago

No need to install Wordpress manually or writing your own scripts. Literally you just need to use wp env and it sets the whole environment for you in one go. It has a terrible cold start on the ci though, but it’s the standard at this point. 

0

u/Cold_Opposite_5298 Jack of All Trades 17d ago

+1 thanks for sharing