https://github.com/wpstarter/wp-testbench
A tool to set up a WordPress test environment for PHPUnit testing
https://github.com/wpstarter/wp-testbench
phpunit test testing testing-tools unittest wordpress
Last synced: 12 days ago
JSON representation
A tool to set up a WordPress test environment for PHPUnit testing
- Host: GitHub
- URL: https://github.com/wpstarter/wp-testbench
- Owner: wpstarter
- Created: 2023-05-26T09:10:57.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-06-05T04:27:53.000Z (almost 2 years ago)
- Last Synced: 2025-04-17T04:58:15.890Z (15 days ago)
- Topics: phpunit, test, testing, testing-tools, unittest, wordpress
- Language: PHP
- Homepage:
- Size: 35.2 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## About WpTestbench
WpTestbench is a tool used to set up a WordPress test environment for PHPUnit testing, in order to test your plugin.## Installation
Install testbench via composer
composer require wpstarter/wp-testbench --dev
Install WordPress
./vendor/bin/wp-testbench-install [db-pass] [db-host] [wp-version] [--skip-database-creation]
Update phpunit.xml
...
...
Custom wp-config.php
That's all then you can run the PHPUnit test
./vendor/bin/phpunit