maneuver / wp-test-suite
Installs: 64
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/maneuver/wp-test-suite
Requires
- dmore/chrome-mink-driver: ^2.6
- fzaninotto/faker: ^1.7
- phpunit/phpunit: ^6.0
This package is not auto-updated.
Last update: 2025-10-23 07:34:37 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