Item1089: Add unit tests for Engines
Priority: Enhancement
Current State: Closed
Released In: n/a
Target Release: n/a
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:
- Local test: build a CGI environment and perform the test. This one is completely automatic, but works only with CGI engine
- 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