You are here: Foswiki>Tasks Web>Item1089 (02 Mar 2015, GeorgeClark)Edit Attach

Item1089: Add unit tests for Engines

Priority: Enhancement
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: UnitTestContrib
Reported By: GilmarSantosJr
Waiting For:
Last Change By: GeorgeClark
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

5 years old, long since released. Closing.

-- GeorgeClark - 02 Mar 2015
Topic revision: r18 - 02 Mar 2015, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy