Skip to content

Latest commit

 

History

History
68 lines (41 loc) · 1.06 KB

TESTS.md

File metadata and controls

68 lines (41 loc) · 1.06 KB

CodeCeption Testing

SETUP

Local Servers

Install ChromeDriver, GeckoDriver or Selenium Server. These will be used to emulate the browser acceptance tests For each tests, the browser will have to be restarted

Composer

Ensure composer in installed. Run composer install to install dependencies

CodeCept

Install and configure Codecept

Testing

All Tests

Run the following in the business-directory-plugin plugin folder

#!bash 
$ cd <path-to-wordpress>/wp-content/plugins/business-directory-plugin

$ codecept run

Acceptance Tests

#!bash 
$ cd <path-to-wordpress>/wp-content/plugins/business-directory-plugin

$ codecept run acceptance

Functional Tests

#!bash 
$ cd <path-to-wordpress>/wp-content/plugins/business-directory-plugin

$ codecept run functional

WPUnit Tests

#!bash 
$ cd <path-to-wordpress>/wp-content/plugins/business-directory-plugin

$ codecept run wpunit

Unit Tests

#!bash 
$ cd <path-to-wordpress>/wp-content/plugins/business-directory-plugin

$ codecept run unit