Skip to content

An example of how to perform automated acceptance testing of a WordPress plugin using Codeception.

Notifications You must be signed in to change notification settings

polevaultweb/wpos3-acceptance-testing-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automated Acceptance Testing Example Using Codeception

This is an example of how to perform automated acceptance testing of a WordPress plugin using Codeception.

It is a companion to the Delicious Brains post on the same topic.

Requirements

  1. Composer
  2. Java (JDK)
  3. PHP 5.5+
  4. AWS account

Install

  1. Clone the repository and cd into it.
  2. Make sure the permissions are correct on the tests/tmp directory using chmod -R 755 tests/tmp
  3. Run composer install
  4. Copy the codeception.dist.yml file to codeception.yml
  5. Enter your AWS key, secret and bucket name in the S3Filesystem module config in codeception.yml
  6. Configure your local database credentials in the WPDb module config in codeception.yml
  7. Add a virtual host for wpos3-acceptance.test pointing to /tests/tmp/wp in the cloned repo

Running the Tests

sh run-tests.sh

Optionally pass -s to start from scratch, which removes the WordPress site and re-installs. You don't need this flag the first time.

About

An example of how to perform automated acceptance testing of a WordPress plugin using Codeception.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published