Overview
| Artifact ID: | 74730f0a7541c3615067d66a0fc88af8842e2c77 |
|---|---|
| Ticket: | 1051679fffffffffffffffffffffffffffffffff
Add triggered skip ability to tests |
| User & Date: | robert_seeger on 2004-10-21 18:48:18 |
Changes
- assignee changed to: "dgp"
- cmimetype changed to: "text/plain"
- 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
- foundin changed to: "None"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "robert_seeger"
- subsystem changed to: "34. tcltest Package"
- title changed to: "Add triggered skip ability to tests"
- type changed to: "RFE"