In order to run the tests, configure the setting file (settings.cfg
) and run the installer and the executor scripts.
- PHP 5.4 or above - Codeception v2+ requires this version.
- MySQL - the
mysql
command needs to be available. - MySQLAdmin - the
mysqladmin
command needs to be available. - SVN - the
svn
command needs to be available.
-
Important Rename
settings-sample.cfg
intest/
tosettings.cfg
. Edit the file and set up necessary paths, database user name password, and host, plugin slug, test site location etc. -
cd to
test/
and runinstall.sh
by typing the following command in a console program.bash install.sh
-
Run the test by typing the following.
bash run.sh
-
When tests are done, to uninstall the test site and the database, run the uninstaller script by typing the following.
bash uninstall.sh
To run .sh
files on Windows, you need a Bash emulator. Here is one.