Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 74730f0a7541c3615067d66a0fc88af8842e2c77
Ticket: 1051679fffffffffffffffffffffffffffffffff
Add triggered skip ability to tests
User & Date: robert_seeger on 2004-10-21 18:48:18
Changes

  1. assignee changed to: "dgp"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Currently, the only way to cause a test to be SKIPPED
    is via constraints. I'd like the ability to either
    cause a test to be considered SKIPPED mid-run, or to
    give it a status that is neither PASSED nor FAILED.
    
    The reasoning for this doesn't become clear until you
    start writing higher level tests with the package. Once
    you have acceptance tests, you start encountering cases
    where the test didn't prove the specified functionality
    is broken, but it could not prove it was not broken.
    
    Consider an application that takes data from multiple
    sources and formats them in a given way. For lower
    level tests, hte data sources can (and should) be
    stubbed out so that they need not be considered.
    However, at the acceptance test level, its necessary to
    actually interact with outside APIs and datasources, to
    prove that the code is using them correctly.
    
    When the datasource doesn't return a specific type of
    data (i.e. it doesn't have the data at the moment),
    then there's no way to find out if it was formatted
    correctly. As such, the test can be considered to have
    neither PASSED nor FAILED. However, since the data
    isn't retrieved from the datasource until the test
    starts, there's no way to SKIP the test.
    
    As such, I'd like some way to signify that a test
    "neither passed nor failed" from within the test body
    (or setup or cleanup). This can be via either saying it
    was SKIPPED, or via some other code.
    
    I'd write this up as a TIP, but I have no current
    suggestion as to the best way to implement this ability.
    
    Robert Seeger
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "robert_seeger"
  9. subsystem changed to: "34. tcltest Package"
  10. title changed to: "Add triggered skip ability to tests"
  11. type changed to: "RFE"