Acceptance Tests

Setup your local environment

Have a Mac? We recommend Valet.

Install the Codeception PHAR globally
sudo curl -LsS -o /usr/local/bin/codecept
sudo chmod a+x /usr/local/bin/codecept

Then, check if it works:

$ codecept --version

IMPORTANT: Codeception requires PHP 5.4 or higher.

Point Codeception to your local URL

The url option in tests/codeception/acceptance.suite.yml will need to point to your the URL of your local development site. The default is

Run the tests
cd /path/to/wordpress/wp-content/themes/primer
codecept run acceptance