Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/michaeluno/wpception
Codeception fork utilized for testing WordPress related development
https://github.com/michaeluno/wpception
codeception tdd-framework unit-testing-framework wordpress
Last synced: 1 day ago
JSON representation
Codeception fork utilized for testing WordPress related development
- Host: GitHub
- URL: https://github.com/michaeluno/wpception
- Owner: michaeluno
- License: mit
- Created: 2020-01-17T08:26:49.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-06-21T18:02:13.000Z (over 2 years ago)
- Last Synced: 2024-10-03T12:30:28.189Z (4 months ago)
- Topics: codeception, tdd-framework, unit-testing-framework, wordpress
- Language: PHP
- Size: 2.01 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: Changelog.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# WPCeption
WPCeption is a custom build of Codeception for testing WordPress plugin and themes.## Background
The current version of [WordPress Unit Tests Library](http://develop.svn.wordpress.org/tags/5.3.2/tests/phpunit/includes/) for WordPress 5.3.2 (the latest as of 2020/01/18) is constrained to PHPUnit 7.x. while Codeception 4.0.2 uses PHP Unit 8.x.This creates a difficult situation for WordPress plugin/theme developers to use Codeception for their test tool.
So this custom build solves the incompatibility issue.
## Download
Download the [wpcept.phar](https://github.com/michaeluno/wpception/raw/master/build/wpcept.phar) file and place it in a working test directory.## Usage
Same as Codeception.
```bash
$ php wpcept.phar -V
$ php wpcept.phar bootstrap
$ php wpcept.phar run
```## Included Versions
- [Codeception](https://github.com/codeception/codeception) 4.0.2
- [PHPUnit](https://github.com/sebastianbergmann/phpunit) 7.5.20## Create Your Own Build
1. Clone this repository to local.
2. Run Composer to download Codeception, PHPUnit v7.x, and their dependencies.
```bash
$ composer install
```
3. Download the phar archiver [box.phar](https://github.com/humbug/box/releases/download/3.8.4/box.phar).
4. From the repository root directory, run
```bash
$ php box.phar compile
```
5. `build/wpcept.phar` will be created. Change the configurations with `box.json` as you need.## License
Licensed under [MIT](LICENSE.txt).