Testing Guidelines
Prefer Cucumber for API Testing
For REST and gRPC tests, use the Go BDD suite under internal/bdd/testdata/features*/ instead of unit tests with mocks.
Reserve unit tests with mocks for internal implementation details and infrastructure testing.
Cucumber Failure Reporting
When tests fail:
go test ./internal/bdd -run TestFeatures... > test.log 2>&1
rg -n "FAIL|ERROR|panic|--- FAIL:" test.log
Prefer searching the redirected log for the failing scenario and stack trace context.
Converted and distributed by TomeVault — claim your Tome and manage your conversions.