Skip to content
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

Merged
merged 17 commits into from
Aug 24, 2020

Conversation

Laurens-makel
Copy link
Contributor

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.

@Laurens-makel Laurens-makel marked this pull request as draft June 23, 2020 08:57
@gvanbrakel
Copy link
Contributor

Laurens,
I think this is a very useful addition to the larva testtool, and have the following remarks to the PR:

  • would it be possible to have some tiny piece of documentation that lists these options. I would already be happy with a text document stating all the types of '...betweenkeys'-options and their format. Maybe Martijn has an idea where to put it best.
  • could you have a look in the changes in PR#82 in the testtool class? This contains a 'formatDecimalContentBetweenKeys' feature. Could you copy that to your PR? Then we will close PR#82, as it has been superseded by others.

@Laurens-makel
Copy link
Contributor Author

Laurens,
I think this is a very useful addition to the larva testtool, and have the following remarks to the PR:

  • would it be possible to have some tiny piece of documentation that lists these options. I would already be happy with a text document stating all the types of '...betweenkeys'-options and their format. Maybe Martijn has an idea where to put it best.
  • could you have a look in the changes in PR#82 in the testtool class? This contains a 'formatDecimalContentBetweenKeys' feature. Could you copy that to your PR? Then we will close PR#82, as it has been superseded by others.

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.

@Laurens-makel Laurens-makel changed the title WIP: Add possibility to declare ignores based on identifiers instead of numeric values in Larva Add possibility to declare ignores based on identifiers instead of numeric values in Larva Aug 10, 2020
@Laurens-makel Laurens-makel marked this pull request as ready for review August 10, 2020 08:26
@gvanbrakel gvanbrakel merged commit 0689536 into frankframework:master Aug 24, 2020
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.

2 participants