An open API service indexing awesome lists of open source software.

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

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.