Skip to content

Request for adding ignore order feature for verifyXml #451

Open
@wuh3

Description

@wuh3

Hello developers,

Due to some code stability requirements, I may need the verifyXml(String, Option) in Approvals.java to pass if the fields in the XML string are shuffled. I wonder if you could add a new feature that can satisfy this. By stability requirement, I mean specifically when I apply the tool NonDex, which will shuffle implementation-dependent operations. The NonDex tool will shuffle the elements inside of the xml string which will cause the verifyXml method to fail.

I saw some similar issues were raised previously, and the closest one I found was https://github.com/approvals/ApprovalTests.Java/issues/301. However, I think the proposed solution Option.withComparator() may not fit my demand that well since I am testing an xml string instead of a File. It would be great if you could help!

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