Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 61999f5f4d4ee91fcfc27948ec4f2bee0ea56157
Ticket: 513983ffffffffffffffffffffffffffffffffff
invalid calls to [test] should throw errors
User & Date: dgp on 2002-02-08 11:03:15
Changes

  1. icomment:
    Logged In: YES 
    user_id=80530
    
    You know, sometimes I just lack imagination.
    
    Ken, here's an example where the existing non-error-throwing
    behavior of [test] could be important.  Imagine you are
    using tcltest as the engine to drive a very large,
    very expensive, unattended set of tests.  Maybe I'm
    testing some software that runs only on a supercomputer
    where I only get access by having my process wait in a
    batch queue for a paid slot of processing time in the
    middle of the night.  Say I make that same typo in
    test 137 out of 11,293.  I'll be unhappy the next day to
    learn that test 137 did not succeed because of my stupid
    typo, but I'll be devastated if tests 138-11,293 did not
    even run because of it.
    
    So for someone using tcltest in that way, they will
    prefer the current tcltest 2 way of doing things, over
    the old tcltest 1 behavior.  They may even have moved from
    version 1 to version 2 to get that feature.  And they'll
    be very unhappy to see it change.
    
    So it seems to me the best way to cater to everyone is
    to make this aspect of [test] configurable.  Add some
    new command in tcltest by which you can configure whether
    or not you want [test] to throw error when it is called
    incorrectly, with the default that it does not.
    
    Thoughts?
    
    
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"