Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ff11748b3be2d17a92e1472412589970ebd8d9fc
Ticket: 556837ffffffffffffffffffffffffffffffffff
nested tests are not counted correctly
User & Date: vincentdarley on 2002-05-16 16:02:54
Changes

  1. assignee changed to: "dgp"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    If one test executes a number of others, the 'inside' 
    tests are not reported in the statistics at the end of 
    the test run.
    
    A complex example of this is available in the tclvfs 
    test suite (vfsArchive.test)
    
    But a simple example is as follows:
    
    % package require tcltest
    % tcltest::test name {blah} { tcltest::test in in 
    {expr 1} {0} } {1}
    
    
    ==== in in FAILED
    ==== Contents of test case:
    expr 1
    ---- Result was:
    1
    ---- Result should have been (exact matching):
    0
    ==== in FAILED
    
    
    ==== name blah FAILED
    ==== Contents of test case:
     tcltest::test in in {expr 1} {0} 
    ---- Result was:
    0
    ---- Result should have been (exact matching):
    1
    ==== name FAILED
    
    0
    
    % tcltest::cleanupTests 1
    :Total1Passed0Skipped0
    Failed1
    Sourced 0 Test Files.
    
    But of course this should say 'total 2', 'failed 2'.
    
    
    
  4. foundin changed to: "obsolete: 8.4a5"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "vincentdarley"
  9. subsystem changed to: "34. tcltest Package"
  10. title changed to: "nested tests are not counted correctly"
  11. type changed to: "Bug"