x-bdd-fake-green

Official

Stop BDD from passing without real checks

Authorpure-golang
Version1.0.0
Installs0

System Documentation

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.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: x-bdd-fake-green
Download link: https://github.com/pure-golang/level85/archive/main.zip#x-bdd-fake-green

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.