Artifacts Associated With Ticket 1051679fff
Ticket change [74730f0a75] (rid 105207) by robert_seeger on 2004-10-21 18:48:18:
- assignee initialized to: "dgp"
- cmimetype initialized to: "text/plain"
- comment initialized 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 initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "robert_seeger"
- subsystem initialized to: "34. tcltest Package"
- title initialized to: "Add triggered skip ability to tests"
- type initialized to: "RFE"
Ticket change [3ad3c1fb2f] (rid 112625) by dkf on 2005-01-07 17:50:23:
- icomment:
Logged In: YES user_id=79902 Hmm, SKIPPED is wrong. It's not that the test has been skipped but that there is another state. To use an analogy with Scottish Law, we're looking not for "Innocent" or "Guilty" but rather "Not Proven". :^)
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [00e69b3446] (rid 119390) by robert_seeger on 2005-01-08 09:48:37:
- icomment:
Logged In: YES user_id=1081558 I'd be ok with another state, along the lines of "unresolved", "abandoned", or something else similar. In my own tcltest modifications, I have a command called tcltest::abandon which causes the test to be registered as Skipped, just because that was easier than adding a while new state to tcltest. It takes one argument, the constraint to say the test was skipped due to... which I tend to supply as "noRecords" or something similar.
- login: "robert_seeger"
- mimetype: "text/plain"
- username: "robert_seeger"
- icomment: