https://github.com/xwp/wp-customize-tests
Config and code coverage for PHPUnit tests for the WordPress Customizer
https://github.com/xwp/wp-customize-tests
Last synced: 10 months ago
JSON representation
Config and code coverage for PHPUnit tests for the WordPress Customizer
- Host: GitHub
- URL: https://github.com/xwp/wp-customize-tests
- Owner: xwp
- Created: 2015-03-07T00:35:19.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-12-06T17:07:46.000Z (about 10 years ago)
- Last Synced: 2025-01-15T12:16:37.219Z (12 months ago)
- Language: Shell
- Homepage: http://xwp.github.io/wp-customize-tests/
- Size: 484 KB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
There is already a `customize` test group for PHPUnit in WordPress Core:
```
phpunit --group customize
```
This repo provides some additional features tailored for running tests for the Customizer,
specifically support for generating code coverage reports (see [example](http://xwp.github.io/wp-customize-tests/)).
Clone this repo as a subdirectory for your `wordpress-develop` repo:
```sh
cd wordpress-develop
git clone https://github.com/xwp/wp-customize-tests.git wp-customize-tests
```
Then you can run unit tests specific to the Customizer via:
```sh
wp-customize-tests/phpunit-with-code-coverage.sh
```
And then open `wp-customize-tests/coverage-html/index.html` to see the report.