Pull request Compare This branch is 19 commits behind michaeluno:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
include
tests
coverage-checker.php
install.sh
readme.md
rm.NUL.sh
run.acceptance.sh
run.functional.sh
run.sh
run.unit.sh
screenshot.png
settings-sample.cfg
settings.travis.cfg
sync.sh
uninstall.sh

readme.md

Test Suite for Admin Page Framework

Drawing a screenshot

In order to run the tests, configure the setting file (settings.cfg) and run the installer and the executor scripts.

Requirements

  • 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.

Steps

  1. Important Rename settings-sample.cfg in test/ to settings.cfg. Edit the file and set up necessary paths, database user name password, and host, plugin slug, test site location etc.

  2. cd to test/ and run install.sh by typing the following command in a console program.

    bash install.sh
    
  3. Run the test by typing the following.

    bash run.sh
    
  4. When tests are done, to uninstall the test site and the database, run the uninstaller script by typing the following.

    bash uninstall.sh
    

Notes

To run .sh files on Windows, you need a Bash emulator. Here is one.