Skip to content

Suppress string diffs when actual/expected differ too much #126

Open
@papandreou

Description

@papandreou

Sometimes the string diffs are just noise, eg. when either actual or expected is the empty string. Certain cheaters exploit the fact that you can specify '' as the expected value and copy paste the diff output into your test and remove the minus signs. If we want to keep that ability we could at least omit the diff when actual is the empty string.

We could also consider a heuristic based on the Levenshtein distance?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions