🧪 test: fix BDD step registration and update CI/CD workflow
Some checks failed
CI/CD Pipeline / Build Docker Cache (push) Successful in 17s
CI/CD Pipeline / CI Pipeline (push) Has been cancelled

- Fix step pattern escaping in pkg/bdd/steps/steps.go:80
- Update CI/CD workflow to use run-bdd-tests.sh script
- Enhance run-bdd-tests.sh for both local and CI environments
- Add strict validation for undefined/pending/skipped steps
- Update BDD testing documentation with pattern requirements

The CI/CD pipeline now properly validates BDD tests and fails on any
undefined, pending, or skipped steps. All 22 BDD scenarios are passing
with correct step pattern registration.
This commit is contained in:
2026-04-08 12:13:17 +02:00
parent f013a1771d
commit 5bfb08abc7
7 changed files with 854 additions and 51 deletions

View File

@@ -87,4 +87,10 @@ Godog's step matching is **very specific by design**:
- It provides exact patterns to ensure consistency
- Following its suggestions guarantees your steps will be recognized
**Remember**: The "undefined" warnings are Godog telling you exactly how to fix your step definitions!
**Remember**: The "undefined" warnings are Godog telling you exactly how to fix your step definitions!
## Critical Pattern Fix
**File:** `pkg/bdd/steps/steps.go`
**Line:** 80
**Issue:** Step pattern must use double escaping (4 backslashes + quote) not single escaping (2 backslashes + quote)
**Pattern:** `^the response should be "{\\"([^"]*)\\":\\"([^"]*)\\"}"$`