Ticket #2 (closed task: fixed)

Opened 3 years ago

Last modified 3 years ago

Command line-based unit testing

Reported by: xue Owned by: knut
Priority: major Milestone: 3.0beta
Component: Prado Framework v3 Version: 3.0
Severity: Keywords: test
Cc:

Description

Currently, we have a small set of unit tests that are Web-based. They are intuitive to use, but are difficult for automatic unit testing in future when we have large amount of tests to perform. Therefore, we need a script/scheme to perform command line-based unit testing. Note, when running multiple tests at a time, each test should be independent of the others.

Change History

Changed 3 years ago by xue

  • milestone changed from Version 3.0 alpha release to Version 3.0 beta release

Changed 3 years ago by knut

  • owner changed from prado to knut

Changed 3 years ago by knut

  • status changed from new to closed
  • resolution set to fixed

Through the introduction of Phing as the overall build system for PRADO I've created a target "test". A new directory "unit" under the tests/ directory will now contain the new structure of unit tests written against PHPUnit2. The target "test" will run all unit tests and generate both a "Unit Test Report" and a "Code Coverage Report" in a reports/ directory.

Usage:

$> phing test

Latest version of Phing can be obtained at http://www.phing.info. The current CVS version is needed at the time of writing, but Phing 2.2.0 is scheduled for release soon.

Note: See TracTickets for help on using tickets.