Skip to content

Ability to remove original failure message when user message is provided. #703

Closed

Description

@sunshinejr

It would be awesome to be able remove the original failure message from the failure string, meaning:

Hey these aren't equal!
Expected to equal <2>, got <1>

could become:

Hey these aren't equal!

If I'm providing my custom message I rarely need an original failure, especially when I generate reports that I want to pass to other people - the second line is usually just a noise.

Would this be something that could be introduced in Nimble? I started looking at the possible implementation, and this place seems like a good place to start, but then I wonder how we would be able to specify if we want the original failures in the messages or not.

Ideally we could just opt-in using a single property, something like:

Nimble.showOriginalFailuresWithUserDescriptions = false

Activity

  1. locked and limited conversation to collaborators on May 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions