cucumber / godog

Cucumber for golang
MIT License
2.32k stars 254 forks source link

Ambiguous step detection - add support to all formatters #648

Closed Johnlon closed 1 month ago

Johnlon commented 1 month ago

🤔 What's changed?

Previously "ambiguous" step reporting had been omitted for some of the formatters. This change adds support for "ambiguous" steps to all formatters.

⚡️ What's your motivation?

Bug fix.

🏷️ What kind of change is this?

♻️ Anything particular you want feedback on?

Worth scanning the test data file changes - ie "some_scenarios_including_failing"

📋 Checklist:


This text was originally generated from a template, then edited by hand. You can modify the template here.

github-actions[bot] commented 1 month ago

Go API Changes

# github.com/cucumber/godog
## compatible changes
Attach: added
Attachment: added
Attachments: added
ErrAmbiguous: added
StepAmbiguous: added

# github.com/cucumber/godog/formatters
## incompatible changes
Formatter.Ambiguous: added

# summary
Inferred base version: v0.14.1
Suggested version: v0.15.0
Johnlon commented 1 month ago

@vearutop - hi - further PR to the "ambiguous" step detection that adds full support to the formatters - as previously we only got to know about dupe steps from the test exit code.