Utility plugin for Caldera Forms development.
This plugin pulls in all of the tests forms for Caldera Forms and also runs the tests and manages keeping the right version of Caldera Forms is installed.
It is designed for two types of sites:
- A site being used for Caldera Forms QA/CI.
- A local development site used to develop Caldera Forms.
This is mainly desgined for internal use, but if you wish to learn or borrow from this -- go ahead, GPL.
composer require calderawp/ghost-runner --dev
define( 'CGRKEY', 'Your Ghost Inspector API key' );
define( 'CGRGDID', 'The address of the Google Sheet With Your Tests' );
define( 'CGRLOCALAPIKEY', 'LongAlphanumericString' );
- Activate WP Pusher
- Activate Caldera Forms (install with WP Pusher or WP Rollback according to docs)
- Activate this plugin.
- Go to Ghost Runner menu
- Click the Import Forms button/link/whatever
- Check that you have a bunch of pages with tests
- Set the branch in the branch setting (this doesn't do much right now, will allow for plugin updates automattiacally later)
- Go to admin screen
- Click import forms.
- Ignore everything else.
wp cgr import
wp cgr run
- GET wp-json/ghost-runner/v1/tests : Get URLs for requesting that Ghost Inspector run all tests on this site, optionally running them.
- key: Should be the same as
CGRLOCALAPIKEY
. Required. - notify: Webhoook Url for Ghost Inspector to use. Default empty.
- run: Trigger tests via Ghost Inspector API? Default false.
- GET wp-json/ghost-runner/v1/import : Import test forms.
- key: Should be the same as
CGRLOCALAPIKEY
. Required
Copyright 2017 Josh Pollock for CalderaWP LLC. Licensed under terms of the GNU GPL v2 or later.