SimpleTest

From PGVWiki
Revision as of 19:18, 6 June 2010 by Momse (talk | contribs) (→‎Writing Tests for PhpGedView)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


SimpleTest
Simpletest-logo.png
Contact: Nathan S. Watson-Haigh
Dev. Codebase: v1.0.1beta2

SimpleTest is an opensource PHP unit test, mock objects and web test framework developed by a third party. Users of JUnit will be familiar with most of the interface. JWebUnit style functionality is more complete now. It has support for SSL, frames, proxies, basic authentication and the standard HTML controls. The idea is that common but fiddly PHP tasks, such as logging into a site, can be tested easily.

SimpleTest is available as a module in PhpGedView (currently only in the development branch).

Test Organisation

You should familiarise yourself with how to write tests before continuing.

modules/testing/unittests/
This directory is intended for unit testing files for individual classes.
modules/testing/testgroups/
This directory is intended for writing test groups. This allow for the logical organisation and running of a set of unit tests.
modules/testing/webtests/
This directory is intended for test files that test the PhpGedView web interface.

Writing Tests for PhpGedView

External Links

Official website
http://www.simpletest.org
SourceForge
http://www.simpletest.org
Documentation
http://www.simpletest.org/en/overview.html
SimpleTest API
http://simpletest.org/api/