Item1647: Need unit tests for the CLI Scripts
Priority: Enhancement
Current State: No Action Required
Released In: n/a
Target Release: n/a
sven@t42p:/data/trunk/core/bin$ ./view
Can't call method "clear" on an undefined value at /data/trunk/core/lib/Foswiki.pm line 965.
at /data/trunk/core/lib/Foswiki.pm line 965
Foswiki::_clearValidationKeys('Foswiki=HASH(0x84af748)') called at /data/trunk/core/lib/Foswiki.pm line 639
Foswiki::writeCompletePage('Foswiki=HASH(0x84af748)', '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN...', 'view', 'text/html') called at /data/trunk/core/lib/Foswiki/UI/View.pm line 391
Foswiki::UI::View::view('Foswiki=HASH(0x84af748)') called at /data/trunk/core/lib/Foswiki/UI.pm line 289
Foswiki::UI::__ANON__() called at /usr/share/perl5/Error.pm line 416
eval {...} called at /usr/share/perl5/Error.pm line 408
Error::subs::try('CODE(0x9404910)', 'HASH(0x9427780)') called at /data/trunk/core/lib/Foswiki/UI.pm line 358
Foswiki::UI::_execute('Foswiki::Request=HASH(0x8992030)', 'CODE(0x8991bd0)', 'command_line', 1, 'view', 1) called at /data/trunk/core/lib/Foswiki/UI.pm line 260
Foswiki::UI::handleRequest('Foswiki::Request=HASH(0x8992030)') called at /data/trunk/core/lib/Foswiki/Engine/CLI.pm line 51
Foswiki::Engine::CLI::run('Foswiki::Engine::CLI=HASH(0x885ae38)') called at ./view line 45.
Foswiki detected an internal error - please check your Foswiki logs and webserver logs for more information.
Can't call method "clear" on an undefined value
obviously we need to add a set of tests to the nightly build that runs each of the scripts through it paces..
--
SvenDowideit - 21 May 2009
This applied to code that has long since moved on. However Sven's general point is sound, so changed the headline from "trunk command line script seems to be broken?", Confirmed and reduced priority from "Urgent".
--
CrawfordCurrie - 26 May 2009
Closing due to inactivity.
--
Main.MichaelDaum - 13 Oct 2020