Status: Accepted
Owner: ----
Labels: Type-Enhancement Priority-High Target-2.5 bwic

New issue 544 by pekka.klarck: Run all keywords in teardown even if there are failures
http://code.google.com/p/robotframework/issues/detail?id=544

Teardowns in test and suite level are used mainly for cleanup. To make sure
everything is cleaned up properly, it would be better to run all the
keywords inside teardown even if there are failures. Nowadays people are
doing this by wrapping all the keywords with `Run Keyword And Ignore
Error`. Implementing this ought to be relatively easy when we have the
basic ContinueOnFailure mechanism (issue 137) implemented.

This change is slightly backwards incompatible, because it's possible that
executing keywords in teardown after some other keyword there has failed
can cause problems. I believe chances for that are relatively small,
though, and in most cases executing rest of the keywords is
the-right-thing. If this turns out to be a real problem, we need to
implement a way to stop the teardown after failures somehow.

Reply via email to