You are here: Foswiki>Tasks Web>Item11683 (02 Jun 2014, MichaelDaum)Edit Attach

Item11683: unit tests are have no script context.

pencil
Priority: Urgent
Current State: No Action Required
Released In: 1.2.0
Target Release: minor
Applies To: Engine
Component:
Branches:
Reported By: SvenDowideit
Waiting For:
Last Change By: MichaelDaum
which means they're not actually testing the code that is running.

for example, the LINKTOOLTIP code returns '' if its not in the view context.

This is a very well hidden gotcha.

-- SvenDowideit - 22 Mar 2012

I assume you mean the tests are run in a 'script' context rather than a 'view' context (the headline is unclear)?

The LINKTOOLTIP code ought to test both with the 'view' context set and with it unset (I see that's what it does); there is no general solution to this problem.

No action.

-- CrawfordCurrie - 22 Mar 2013

ItemTemplate edit

Summary unit tests are have no script context.
ReportedBy SvenDowideit
Codebase 1.1.4
SVN Range
AppliesTo Engine
Component
Priority Urgent
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease minor
ReleasedIn 1.2.0
CheckinsOnBranches
trunkCheckins
Release01x01Checkins
Topic revision: r3 - 02 Jun 2014, 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