-
-
Notifications
You must be signed in to change notification settings - 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