Skip to content

Conversation

@tukanos
Copy link
Contributor

@tukanos tukanos commented Dec 2, 2024

Allow in testing manually replace parser that is automatically created.

@kursjan
Copy link
Owner

kursjan commented Dec 3, 2024

Can you add a comment why you need this? What is the use case for this behavior?

@tukanos
Copy link
Contributor Author

tukanos commented Dec 3, 2024

@kursjan certainly. My use-case is to test all parser combinations, which can be created. For example, with different thousand, decimal separators or with different kinds of brackets/braces that could come in the future.

I could circumvent it by using multiple test classes where I would create the combinations. This patch allows you to test a a parser, toss it away. Have then a new parser with different setup and use tests created for that parser. All tested at one iteration.

I could create all parsers at once and store them at resource. In this instance, I don't want that because I want to test the one parser only and not other combination(s). The parsers are also created by default by using their #parserName with default values that I don't want. I want to have parser defined by me and that should be used for testing.

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