Item12925: Unit tests needed for Foswiki PageCache
Priority: Urgent
Current State: Closed
Released In: 1.2.0
Target Release: minor
Applies To: Engine
Component: PageCache
Branches: master
The current "CacheTests" simply end with no tests run.
(master)$ ../bin/TestRunner.pl -clean CacheTests.pm
exporting FOSWIKI_ASSERTS=1 for extra checking; disable by exporting FOSWIKI_ASSERTS=0
Options: -clean
Assert checking on 1
Starting CWD is /var/www/foswiki/trunk/core/test/unit
Running CacheTests
*** No tests in CacheTests
Unit test run Summary:
- Tested with perl v5.16.3 from /usr/bin/perl5.16.3
All tests passed (0)
1..0
We need functional unit tests for critical core components.
The issue is that the current test lists the Foswiki/Cache directory looking for cache algorithms. Also the test issues POST requests which are not cached.
--
GeorgeClark - 30 May 2014