maneuver/wp-test-suite

v0.0.2 2018-04-10 17:17 UTC

This package is not auto-updated.

Last update: 2024-04-11 00:17:26 UTC


README

Install with composer.

composer require --dev maneuver/wp-test-suite

Run this script to copy some necessary files and example tests.

composer run-script copy-files -d ./vendor/maneuver/wp-test-suite

Usage

Create your tests inside the ./tests/ folder.

Then use phpunit to run all defined tests:

./vendor/bin/phpunit

Or one specific test:

./vendor/bin/phpunit ./tests/BrowserTest.php

For browser tests first run Chrome in headless mode in a seperate terminal window.

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --disable-gpu --headless --remote-debugging-address=0.0.0.0 --remote-debugging-port=9222

Or Chrome Canary:

/Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary --disable-gpu --headless --remote-debugging-address=0.0.0.0 --remote-debugging-port=9222