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
mysqlcommand needs to be available. - MySQLAdmin - the
mysqladmincommand needs to be available. - SVN - the
svncommand needs to be available.
-
Important Rename
settings-sample.cfgintest/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.shby 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.
