What problem does it solve?
This Skill helps you detect and eliminate BDD “fake green” where scenarios pass while not actually verifying the real production behavior, preventing self-deception and silently weak tests.
Core Features & Use Cases
- Fake green auditing: Identifies step patterns where
Given/When/Then manipulate local state but never exercise production paths or observable outcomes.
- Assertion integrity checks: Flags local error/response substitutions (e.g.,
LastErr = fmt.Errorf(...), synthetic gRPC status) and “success-by-any-error” assertions that mask failures.
- When-to-pending guidance: Guides turning “undefined/pending into green” into honest
godog.ErrPending when real checks are not currently available.
- Browser BDD safeguards: Detects DOM/page-object-only assertions and missing Playwright actions that would otherwise keep scenarios green without real UI verification.
- Use Case: During a BDD translation or refactor, it audits that every green scenario would fail if the corresponding service/handler/adapter contract is broken.
Quick Start
Ask the assistant to review your godog or playwright-bdd steps for “fake green” by scanning for local state-only updates and require real observable production calls or return godog.ErrPending when that verification cannot be performed.