-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add possibility to declare ignores based on identifiers instead of numeric values in Larva #860
Add possibility to declare ignores based on identifiers instead of numeric values in Larva #860
Conversation
Laurens,
|
I wrote a bit of documentation of these options a while ago, it's available on https://knowhow.interpar.nl/?epkb_post_type_1=larva-ignores and Martijn knows this document exists, he will process it into the manual. I also added the "formatDecimalContentBetweenKeys" to this PR. |
Currently you define ignores as with appended numeric suffixes:
ignoreContentBetweenKeys1.key1=<field name="ignoreMe">
ignoreContentBetweenKeys1.key2=</field>
ignoreContentBetweenKeys2.key1=<field name="ignoreMe2">
ignoreContentBetweenKeys2.key2=</field>
This has a lot of maintenance issues, declaring generic ignores in common.properties and extending them in specific scenarios is possible, but when a new generic one is introduced, all scenarios that depend on common.properties have to be changed..
This PR will make it possible to declare your (generic) ignores with an identifier instead of a numeric suffix, for example:
ignoreContentBetweenKeys.ignoreMe.key1=<field name="ignoreMe">
ignoreContentBetweenKeys.ignoreMe.key2=</field>
ignoreContentBetweenKeys.ignoreMeToo.key1=<field name="ignoreMe2">
ignoreContentBetweenKeys.ignoreMeToo.key2=</field>
Ofcourse the 'old' way will still work, but this extra feature will give developers more flexibility in creating test scenarios with a common base.
TODO:
Create test scenarios for each ignore property to provide proof of working code.