|
2005-01-08
| ||
| 09:48 | • Ticket [1051679fff] Add triggered skip ability to tests status still Open wi... artifact: 00e69b3446 user: robert_seeger | |
|
2005-01-07
| ||
| 17:50 | • Ticket [1051679fff]: 4 changes artifact: 3ad3c1fb2f user: dkf | |
|
2004-10-21
| ||
| 18:48 | • New ticket [1051679fff]. artifact: 74730f0a75 user: robert_seeger | |
Add triggered skip ability to tests
Open1051679fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2004-10-21 18:48:18
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
dkfplain2005-01-07 17:50:23
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". :^)
robert_seegerplain2005-01-08 09:48:37
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.
Log in (anonymous is fine) to add a comment.