This repository uses Codeception for automated testing and leverages slic for running the tests.
- Docker
- A system-level PHP installation with MySQL libraries
slicset up and usable on your system (follow setup instructions in that repo)
To run tests for the first time, there are a couple of things you need to do:
- Run
slic herein the parent directory from where this library is cloned. (e.g. If you rangit clonein yourwp-content/pluginsdirectory, runslic herefromwp-content/plugins) - Run
slic use uplinkto tellslicto point to the uplink library. - Run
slic composer installto bring in all the dependencies.
You can simply run slic run or slic run SUITE_YOU_WANT_TO_RUN to quickly run automated tests for this library. If you want to use xdebug with your tests, you'll need to open a slic ssh session and turn xdebugging on (there's help text to show you how).