-
-
Couldn't load subscription status.
- Fork 60
Open
Labels
🐛 bugDefect / BugDefect / Bug
Description
👓 What did you see?
When using a Cucumber expression the implementation details of that expression leak into the message representation. Each capturing group in the tree-regexp a group is created as seen in cucumber/compatibility-kit#175.
With the exception of {string} the built in parameter only capture a single string and transform that. So the additional groups do not add any useful detail.
✅ What did you expect to see?
Removing the unused capturing groups would make the output more concise
Note: For {string} the transformation looks like:
String arg = args[0] != null ? args[0] : args[1];
return (String) internalParameterTransformer.transform(arg
.replaceAll("\\\\\"", "\"")
.replaceAll("\\\\'", "'"),
String.class);
But that should probably be
String arg = args[0] != null ? args[0].replaceAll("\\\\\"", "\"")
: args[1].replaceAll("\\\\'", "'");
return (String) internalParameterTransformer.transform(arg,
String.class);
📦 Which tool/library version are you using?
No response
🔬 How could we reproduce it?
No response
📚 Any additional context?
No response
Metadata
Metadata
Assignees
Labels
🐛 bugDefect / BugDefect / Bug
Type
Projects
Status
No status