Skip to content
main
Go to file
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
.tx
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

readme.md

GravityView (Floaty loves you!)

Build Status Scrutinizer Code Quality Coverage Status

GravityView is a commercial plugin available from https://gravityview.co. The plugin is hosted here on a public GitHub repository to better facilitate community contributions from developers and users. If you have a suggestion, a bug report, or a patch for an issue, feel free to submit it here.

If you are using the plugin on a live site, please purchase a valid license from the website. We cannot provide support to anyone that does not hold a valid license key.


Run Unit Tests

The plugin uses PHPUnit as part of the development process. Installing the testing environment is best done using a flavor of Vagrant (try Varying Vagrant Vagrants).

  1. From your terminal SSH into your Vagrant box using the vagrant ssh command
  2. cd into the root of your GravityView directory (VVV users can use cd /srv/www/wordpress-default/wp-content/plugins/gravityview/)
  3. Run bash tests/bin/install.sh gravityview_test root root localhost where root root is substituted for your mysql username and password (VVV users can run the command as is).
    • If you are running locally and have Gravity Forms installed, the script will check for /gravityforms/ directory in your plugins folder. If it exists, it will use that directory.
    • If the script doesn't find a Gravity Forms directory, it will need the path to Gravity Forms directory or the URL of a .zip file passed as the 7th parameter. Example: bash tests/bin/install.sh gravityview_test root root localhost latest false http://example.com/path/to/gravityview.zip or bash tests/bin/install.sh gravityview_test root root localhost latest false ../gravityview/
  4. Upon success, you can run phpunit

If you want to generate a code coverage report you can run the following phpunit --coverage-html "./tmp/coverage" and then a report will be generated in the /tmp/coverage/ subdirectory of the GravityView plugin.

Run Acceptance Tests

  1. cd into the GravityView plugin directory sub-directory tests/acceptance/docker
  2. Run export GRAVITYFORMS_KEY=[YOUR GRAVITY FORMS KEY HERE]
  3. Run export GRAVITYVIEW_KEY=[YOUR GRAVITYVIEW KEY HERE]
  4. Run export PLUGIN_DIR=[/path/to/gravityview]
  5. Run docker-compose run codeception. See Codeception commands reference for a full list of available flags.

Thanks to:

You can’t perform that action at this time.