iHwy / KWC-USGS

WordPress Plugin for USGS Water Data

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

USGS Stream Flow Data WordPress Plugin

PHP Compatibility 7.0+ Test Suite codecov

This plugin was developed to provide Stream Flow Data to websites I had developed. You can download it from the WordPress Repository here.

Since the origional development it has also turned into a little bit of a playground for learning new processes while developing for WordPress.

Testing

The tests are scafolded through the wp scaffold plugin-tests command. You can find more details on setting up your testing environment in the WordPress Handbook.

To setup the testing environment you will need to first run setup the testing environment. This is done by running the vendor/bin/install-wp-tests.sh file including the database name, username, password, host and wordpress version.

bash vendor/bin/install-wp-tests.sh wordpress_test root '' localhost latest

or if you are connecting to MySQL via a socket connection

bash vendor/bin/install-wp-tests.sh wordpress_test root root localhost:/tmp/socket-address.sock latest
./vendor/bin/phpunit tests/test-sample

About

WordPress Plugin for USGS Water Data

License:GNU General Public License v2.0


Languages

Language:PHP 96.1%Language:CSS 2.5%Language:JavaScript 1.4%