Tyler-Keith-Thompson / CucumberSwift

A lightweight swift Cucumber implementation
https://tyler-keith-thompson.github.io/CucumberSwift/documentation/cucumberswift/
MIT License
74 stars 19 forks source link

Stub generation uses deprecated Matcher initializer #68

Closed DevMobileAS closed 1 year ago

DevMobileAS commented 1 year ago

Describe the bug With a .feature line like this: "Angenommen ich starte die App frisch"

... the automatic step generation actually generates stubs like this: Given("^ich starte die App frisch$") ...

This creates the following warning: 'init(_:callback:line:file:)' is deprecated: To use regular expressions with CucumberSwift please migrate to use regex literals.

Expected behavior Looking at the Matcher, the best matching code would be like: Given(/^ich starte die App frisch$/) ...

→ I'll create a pull request for this in a seconds.

Tyler-Keith-Thompson commented 1 year ago

This is fixed in 4.0.4