Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

Acceptance tests

Frankie Jarrett edited this page Jun 23, 2016 · 1 revision

Prerequisites

Setup your local environment

Have a Mac? We recommend Valet.

Install the Codeception PHAR globally

sudo curl -LsS http://codeception.com/codecept.phar -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 http://wp.dev.

Run the tests

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