Skip to content

Latest commit

 

History

History
60 lines (43 loc) · 1.42 KB

README.md

File metadata and controls

60 lines (43 loc) · 1.42 KB

WP-Term

Scrutinizer Code Quality

Pointless PHP script that provides visitors of your WordPress website a unix-like CLI to view and navigate posts / pages.

Not to be confused with WP-CLI or WP-Terminal.

Demo

demo.gif

GIF image recorded using ScreenToGif

Test it on my blog: blog.radwell.codes

Configuration

Configuration is stored in config/ directory as app.php for production and app_test.php for unit tests.

Tests

PHPUnit

Code is fully covered by PHPUnit unit tests.

Assuming you have phpunit.phar in the project root directory, run PHPUnit tests using this command:

php phpunit.phar

Behat

For behat tests you need to do composer install and have Selenium2 running

By default tests are run on my blog but can be changed by modifying behat config.

Run the tests by executing:

vendor/bin/behat

Deployment

Requirements:

  • WordPress
  • Linux
  • patch command
  • twentythirteen theme

Execute the following command:

./deploy.sh -d /path/to/wordpress