Date: 2026-08-29
Accepted
A glue's sentence matcher was turned into a regex by two hand-rolled substitutions ({string}, {number}), and a step's arguments were the quoted literals found in the sentence, not what the matcher captured. {float} or {word} were impossible, 12.5 read as two arguments, and some sentences (a < b) could not be split at all.
Match step sentences with io.cucumber/cucumber-expressions, the reference implementation. A step's arguments are the captures of the expression, converted by their token. Keep {number} as an extra parameter type so existing glues still match. A #"..." glue stays a plain regex.
Generate the skeleton of a missing step with cucumber's CucumberExpressionGenerator.
/, ( and ) must be escaped in a string matcher.Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |