-
Notifications
You must be signed in to change notification settings - Fork 39
Integration and Unit Tests
We just recently started writing our tests and have currently only written integration tests. PHPUnit is a dependency so when you install the composer dependencies, as mentioned in our Setting up your local environment page, you will be ready to go for running the tests.
In order to run the tests, you first need to run the install scripts. To do so, run the bin/install-wp-tests.sh
file. You will need to make sure MySQL and mysqladmin is installed in order to run the script. If you are developing on Windows, you will probably need to use WSL for testing.
Once set up, you can run composer tests
in order to run all of our integration tests. Be sure to start MySQL first!
If you are using WSL, you may need to use a command such as service mysql start
to get it started.