waldenner / robotframework

Automatically exported from code.google.com/p/robotframework
Apache License 2.0
0 stars 0 forks source link

Run all keywords in teardown even if there are failures #544

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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.

Original issue reported on code.google.com by pekka.klarck on 30 Apr 2010 at 12:25

GoogleCodeExporter commented 9 years ago
implemented in revision r3151
This will be documented in issue 541

Original comment by jussi.ao...@gmail.com on 4 May 2010 at 2:28

GoogleCodeExporter commented 9 years ago

Original comment by pekka.klarck on 5 May 2010 at 6:57

GoogleCodeExporter commented 9 years ago
This issue is included in RF 2.5 alpha 1.

Original comment by jussi.ao...@gmail.com on 6 May 2010 at 1:35