Skip to content

Introduce additional option to ignore child element's check.#278

Draft
hiufung-kwok wants to merge 2 commits intoxmlunit:mainfrom
hiufung-kwok:ft-hf-ignore-option
Draft

Introduce additional option to ignore child element's check.#278
hiufung-kwok wants to merge 2 commits intoxmlunit:mainfrom
hiufung-kwok:ft-hf-ignore-option

Conversation

@hiufung-kwok
Copy link
Contributor

A draft which implement the proposed solution under #250

@hiufung-kwok hiufung-kwok changed the title Intro additional option to ignore child element's check. Introduce additional option to ignore child element's check. Sep 30, 2024
@hiufung-kwok
Copy link
Contributor Author

Basically this will override and make sure child element's check be skipped when the option present, but I think there are a bigger structural change need to happen, as the introduction of this option will also affect the child novelist length and number attributes checks.

Expected child nodelist length '0' but was '6' - comparing <deviceDetails...> at /device[1]/deviceDetails[1] to <deviceDetails...> at /device[1]/deviceDetails[1] (DIFFERENT)
Expected number of attributes '1' but was '0' - comparing <deviceDetails...> at /device[1]/deviceDetails[1] to <deviceDetails...> at /device[1]/deviceDetails[1] (DIFFERENT)
Expected attribute name '/device[1]/deviceDetails[1]/@ignore' - comparing <deviceDetails...> at /device[1]/deviceDetails[1]/@ignore to <deviceDetails...> at /device[1]/deviceDetails[1] (DIFFERENT)

@hiufung-kwok
Copy link
Contributor Author

Also I'm thinking to make this as the extension point, so later more custom option can be added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant