Skip to content

Improve the comparison of snapshots #338

@nvnieuwk

Description

@nvnieuwk

Currently nf-test converts the whole snapshot to a JSON string and compares that with the new snapshot, however this causes some issues when the order of the keys in a map is different. It doesn't really make sense to fail the test due to this.

I've noticed this issue here: b186149

The snapshot was the same here but due to updates in Groovy, the order of the map changed. This caused a false positive failure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions