Skip to content

Integration and Unit Tests

Frank Corso edited this page Oct 20, 2020 · 1 revision

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.

Preparing for 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.

Running the tests

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.