Skip to content

Change terminology from "continuable failure" to "soft failure" #3692

Closed

Description

@pekkaklarck

Robot Framework has for long time had support for failures that allow execution it to continue but mark the test failed at the end. This functionality is supported also by many other tools such as TestNG and PyTest via various plugins. For general benefits of this functionality see https://assertless.org/.

We have used our own term "continuable failure" with these failures but a more commonly (albeit not uniformly) used term in our domain is "soft assert". To make this functionality easier to discover, we should use the commonly used term as well. We don't generally use word "assert" as it's more a unit testing term, but using "soft failure" would work very well in our lingo.

What I propose is the following:

  • Update User Guide section about continuable failures to use the term "soft failure". The current section should probably be split to separate sections about ignoring failures and soft failures.

  • Leave the existing keyword Run Keyword And Continue On Failure as-is as works just fine even if the overall term for the functionality would be soft failure. This term should be mentioned in the keyword documentation, though.

  • Leave the special ROBOT_CONTINUE_ON_FAILURE attribute custom exceptions can use to mark they are continuable/soft as-is. Also it works fine even after the terminology change and changing it would require a deprecation period.

  • Name the planned new special exception activating this functionality SoftFailure. See Expose special exceptions via robot.api #3685 for more details about these plans.

In other words, there shouldn't be need for any functional change to existing code.

Activity

  1. added this to the v4.0 milestone on Oct 1, 2020
  2. pekkaklarck commented on Oct 1, 2020

    @pekkaklarck
    MemberAuthor

    A small problem is that the term "soft failure" or "soft error" is used with electronics (e.g. RAM) when there's a failure caused by cosmic rays or other such particles:
    https://en.wikipedia.org/wiki/Soft_error

    I think this is separate enough domain that we using "soft failure" to mean something different is fine.

  3. humbienri commented on Oct 1, 2020

    @humbienri
    Contributor

    How about "NonTerminating Failure" or something to that effect. I think both Soft Failure and Continuable Failure would suffer from the same issue of having to explain what that means, particularly to businessy folks such as CTOs or Product Owners. I'm not sure that you gain very much by going to Soft Failure to merit the change but others can surely feel differently.

  4. pekkaklarck commented on Oct 15, 2020

    @pekkaklarck
    MemberAuthor

    Decided not to do this change for the following reasons:

    • There hasn't been that much interest towards the change.
    • "Continuable falure" may not be the best term but it nevertheless explains the concept more explicitly than "soft failure".
    • The change would require some extra work and could cause confusion.

    This can be considered again in the future if "soft failure" or some other term becomes more widely used. Switching to some other new term like "non-terminating failure" would likely not be worth the effort compared to the current situation.

  5. removed this from the v4.0 milestone on Oct 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions