Enable godog strict mode to fail on undefined steps#3111
Enable godog strict mode to fail on undefined steps#3111st3penta merged 2 commits intoconforma:mainfrom
Conversation
Add Strict: true to godog.Options to ensure undefined steps cause test failures instead of being silently ignored. This prevents false positives where tests appear to pass despite missing step definitions. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Review Summary by QodoEnable godog strict mode and reduce test logging verbosity
WalkthroughsDescription• Enable strict mode in godog to fail on undefined steps • Prevent false positives from silently ignored step definitions • Reduce logging verbosity by removing scenario start messages • Simplify output formatting with single newlines Diagramflowchart LR
A["godog.Options"] -->|Add Strict: true| B["Fail on undefined steps"]
C["Logging output"] -->|Remove start messages| D["Reduced verbosity"]
E["Output formatting"] -->|Single newlines| F["Cleaner output"]
File Changes1. acceptance/acceptance_test.go
|
Code Review by Qodo
1. Unstructured /dev/tty logging
|
Codecov Report✅ All modified and coverable lines are covered by tests.
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Add Strict: true to godog.Options to ensure undefined steps cause
test failures instead of being silently ignored. This prevents false
positives where tests appear to pass despite missing step definitions.
This commit also reduces logging verbosity in acceptance tests.