Provide a Method to Preprocess Gherkin Documents Before Test Class Generation #192
serge-rsvz-inasti
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
I think the external data plugin (https://github.com/reqnroll/Reqnroll/tree/main/Plugins/Reqnroll.ExternalData/Reqnroll.ExternalData.ReqnrollPlugin) does such pre-processing. Check the ExternalDataTestGenerator class. I think based on that you should be able to make a plugin that preprocesses your example as well. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Which of the following two examples do you prefer?
For the project I'm working on, we felt having a comfortable framework was paramount for test adoption. One limitation we faced with the vanilla Gherkin transformation to test class was the inability to express data with multiple representations. For instance, expressing sets and ranges required each possible representation case to be written in full, making test authoring tedious.
I checked if a plugin could handle this, but it currently can't. I then created a custom tool to preprocess raw Gherkin files to complete vanilla ones, but this approach is not as pleasing as having the process handled within a plugin. So, calling a method that could be injected through plugins to preprocess the Gherkin would be awesome.
Beta Was this translation helpful? Give feedback.
All reactions