Taking the WordPress default boilerplate plugin and adding travis-ci and codeception integration
Why do this? For easier plugin development internally at WhereBy.Us.
When it comes time to build frodo - the main WordPress Multisite instance that all of our themes and plugins use - we will pull this internally we run our build.wpe
script, since composer has difficulties with private repos.
Codeception is installed for acceptance, functional, and unit testing. We use travis-ci to do this automatically, when someone creates a commit.
Next steps:
- Edit
tests/acceptance.suite.yml
to set url of your application. ChangePhpBrowser
toWebDriver
to enable browser testing. - Create your first set of acceptance tests using
codecept g:cest acceptance First
- Flesh out the tests in
tests/acceptance/FirstCest.php
- Run tests using:
codecept run
Make sure you are using frodo, and it's up via vagrant up
.