You are here: Foswiki>Tasks Web>Item1647 (13 Oct 2020, MichaelDaum)Edit Attach

Item1647: Need unit tests for the CLI Scripts

pencil
Priority: Enhancement
Current State: No Action Required
Released In: n/a
Target Release: n/a
Applies To: Engine
Component: UnitTestContrib
Branches:
Reported By: SvenDowideit
Waiting For:
Last Change By: MichaelDaum
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

ItemTemplate edit

Summary Need unit tests for the CLI Scripts
ReportedBy SvenDowideit
Codebase trunk
SVN Range Foswiki-1.0.0, Thu, 08 Jan 2009, build 1878
AppliesTo Engine
Component UnitTestContrib
Priority Enhancement
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release02x01Checkins
Release02x00Checkins
Release01x01Checkins
Topic revision: r5 - 13 Oct 2020, MichaelDaum
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