NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use trunk.foswiki.org to view this page for some minimal testing.
Use Item9693 for docu changes for 1.2 and 2.0.

Item1089: Add unit tests for Engines

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Enhancement Being Worked On Engine   Main.GilmarSantosJr
There are no tests to verify engines' code. Some tests are needed:
  • Verify that the Foswiki::Request is built successfully
  • Verify if the Foswiki::Response is sent correctly

There are two ways to test:
  1. Local test: build a CGI environment and perform the test. This one is completely automatic, but works only with CGI engine
  2. External test: send a request to the web server and verify the response

The second way can be used to test engines other than CGI, but requires manual intervention. Since foswiki core is shipped with CGI, this situation is OK.

-- GilmarSantosJr - 16 Feb 2009

Reminde note: Figure out a way to check status codes. (See Item2549).

-- GilmarSantosJr - 02 Jan 2010
Topic revision: r17 - 02 Jan 2010, GilmarSantosJr
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons LicenseGet Foswiki at sourceforge.net. Fast, secure and Free Open Source software downloads