Unit Testing Interface

Test plans can be global (Tools|Test Plans|Create New Global Test Plan... or project-specific (right-click on a project and select Create New Test Plan...).

  1. Give the test plan a useful name
  2. Select the language
  3. Set the directory to run the test command in (usually the base directory
    of a project).
  4. Specify any additional command line options (see below).
  5. Click 'OK' to save the test plan

To run the test plan, select it from the drop list in the Project
Unit Tests Results

The Project drop list shows a list of open projects containing test plans and a [top level] item for global test plans. The Test Plan drop list shows the test plans for the selected project.

Supported Frameworks by Language

  • Perl: Uses 'make test'. If no Makefile is
    present, it first runs 'perl Makefile.PL' to generate one before
    running 'make test'.
  • Python: Uses the unittest framework. You
    need to specify a list of files and/or directories to test.
  • PHP: Uses the PHPUnit framework. Set the
    test plan to point to the base directory of the project. The test harness will
    look for a subdirectory called tests.
  • Ruby: Runs 'rake'. If the default action of
    the Rakefile is to run tests, no command-line options are needed. If not,
    enter the appropriate target for rake (e.g. 'rake test').