erikedin / Behavior.jl

Tool for Behavior Driven Development in Julia
Other
25 stars 3 forks source link

Suggest step implementations for missing steps #63

Closed erikedin closed 3 years ago

erikedin commented 3 years ago

Suggestions work in many cases, but there are problems. The step text strings need to be escaped better. They're escaped by escape_string now, but it doesn't escape the $ symbol, which means that any step like

Given some $foo

will look like a Julia string interpolation when it is suggested like

@given "some $foo" begin ...

This needs to be fixed, but can be a separate issue.