aibdd.auto.csharp.it.red

Execute red-light testing for a C# IT feature with PostgreSQL Testcontainers.

1|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/zenbuapps/zenbu-powers --skill aibdd-auto-csharp-it-red
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aibdd.auto.csharp.it.red
Source: https://github.com/zenbuapps/zenbu-powers/tree/main/skills/aibdd.auto.csharp.it.red
Command: npx skills add https://github.com/zenbuapps/zenbu-powers --skill aibdd-auto-csharp-it-red

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

C# IT 紅燈實作執行器透過自動化流程,讓單一 feature 從 Schema Analysis 到 Red Implementation 之完整紅燈路徑可重複驗證,降低手動設計成本與人為錯誤。

Core Features & Use Cases

  • Schema Analysis: 比對 EF Core Entity、DbContext 與 Migration 以確保規格與實作一致。
  • Step Template 生成:依 Given/When/Then 產出 SpecFlow skeleton,並標註對應 handler。
  • Red Implementation:根據 TODO 逐步替換為實作,建立最小化的 Repository/Service/DTO 架構以觸發 404 紅燈。
  • Use Case: 在單一 feature 上驗證未實作端點會回傳 404,避免未預期的環境影響。

Quick Start

Execute the red-light workflow on a single feature to validate red-path behavior when the endpoint is not implemented.

Frequently Asked Questions about aibdd.auto.csharp.it.red

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate red-light testing for a C# SpecFlow feature using EF Core?

Automate red-light testing by analyzing the EF Core schema, generating SpecFlow skeletons from Step Templates, and implementing minimal handlers to trigger HTTP 404 responses for unimplemented endpoints.

What is a red-light test in C# integration testing and when do I need it?

A red-light test validates that an unimplemented C# endpoint correctly returns an HTTP 404 before actual logic is added. You need it during the Red phase of BDD to verify test infrastructure and failure paths.

How to set up C# integration tests with Testcontainers and PostgreSQL for red phase?

Set up integration tests by configuring a PostgreSQL test environment via Testcontainers, scaffolding empty EF Core entity and repository shells, and ensuring no controllers exist to produce the expected HTTP 404 red light.

Can I use this red-light executor if my EF Core repositories are already implemented?

No, this executor requires EF Core entities, repositories, and services to be scaffolded as empty shells. Pre-existing implementations will prevent the endpoint from returning the HTTP 404 needed for a valid red-light test.

How does the Step Template generation work for SpecFlow integration tests?

Step Template generation produces SpecFlow skeletons from Given/When/Then steps and annotates corresponding handlers. It creates the test structure needed to execute the red-light path for a single C# feature.

Why does my C# feature test return a green light instead of a 404 during the red phase?

If your test returns a green light instead of a 404, controllers or actual endpoint implementations likely exist. The red-light executor requires no controllers to be present to ensure the endpoint fails as expected.