Skip to content

mangrove-labs/WBU-Plugin-Boilerplate

 
 

Repository files navigation

WBU Plugin Boilerplate

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.

Testing

Codeception is installed for acceptance, functional, and unit testing. We use travis-ci to do this automatically, when someone creates a commit.

Development

Next steps:

  1. Edit tests/acceptance.suite.yml to set url of your application. Change PhpBrowser to WebDriver to enable browser testing.
  2. Create your first set of acceptance tests using codecept g:cest acceptance First
  3. Flesh out the tests in tests/acceptance/FirstCest.php
  4. Run tests using: codecept run

Testing locally

Make sure you are using frodo, and it's up via vagrant up.

Testing via travis-ci

About

[WordPress] A foundation for WordPress Plugin Development that aims to provide a clear and consistent guide for building your plugins.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 85.2%
  • Shell 8.2%
  • JavaScript 5.9%
  • CSS 0.7%