Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chassis/tester
Run WP plugin unit tests without changing your Chassis setup
https://github.com/chassis/tester
chassis chassis-extension unit-test wordpress
Last synced: 2 months ago
JSON representation
Run WP plugin unit tests without changing your Chassis setup
- Host: GitHub
- URL: https://github.com/chassis/tester
- Owner: Chassis
- Created: 2014-05-28T00:52:17.000Z (over 10 years ago)
- Default Branch: main
- Last Pushed: 2023-11-07T21:52:58.000Z (about 1 year ago)
- Last Synced: 2024-04-09T22:16:39.786Z (9 months ago)
- Topics: chassis, chassis-extension, unit-test, wordpress
- Language: HTML
- Size: 81.1 KB
- Stars: 7
- Watchers: 5
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tester extension for Chassis
Run WP plugin unit tests without changing your Chassis setup! The Tester
extension automatically sets up your Chassis instance to be able to run plugin
unit tests.## Activation
Ensure you have a Chassis instance set up locally already.```
# In your Chassis dir:
cd extensions# Grab the extension
git clone --recursive https://github.com/Chassis/Tester.git tester# Reprovision
cd ..
vagrant provision
```# Usage
```
vagrant ssh
cd /vagrant/content/{plugins|themes}/yourdirectory
phpunit
```# Custom Database
You can optionally provide a custom database for the tests to use in one of your `.yaml` files: e.g.
```
tester_db:
name: customtests
user: wordpress
password: vagrantpassword
```You're now ready to run any WordPress unit tests locally!