yaochangyu/ai-dev-toolkit/bdd-testing
Claude Code and agent skill by yaochangyu/ai-dev-toolkit
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
BDD 測試實作技能,協助開發者使用 Reqnroll 撰寫行為驅動開發測試,包含 Gherkin 語法、測試步驟實作與 Docker 測試環境設定。
Install
npx vskill@latest install yaochangyu/ai-dev-toolkit/bdd-testingSKILL.md
The same SKILL.md was published earlier as yaochangyu/ai-dev-demo/bdd-testing.
BDD Testing Skill
描述
BDD 測試實作技能,協助開發者使用 Reqnroll 撰寫行為驅動開發測試,包含 Gherkin 語法、測試步驟實作與 Docker 測試環境設定。
職責
- Gherkin .feature 檔案撰寫
- 測試步驟實作(Step Definitions)
- Docker 測試環境設定(Testcontainers)
- BDD 測試策略引導
核心原則
BDD 開發循環
- 需求分析:撰寫 Gherkin 情境
- 測試實作:實作測試步驟
- 功能開發:實作業務邏輯
- 測試驗證:執行測試確保符合需求
Gherkin 語法
Docker 優先測試策略
- 使用 Testcontainers 提供真實 SQL Server、Redis
- 避免使用 Mock(除非必要)
- 每個測試獨立資料
- 測試後自動清理
API 測試必須使用 BDD
- 所有 Controller 功能必須使用 BDD 情境測試
- 禁止單獨測試 Controller
- 透過 WebApplicationFactory 執行完整管線
測試環境
Docker 容器
- SQL Server 容器
- Redis 容器
- Seq 日誌容器
WebApplicationFactory
參考文件
範本檔案
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/bdd-testing/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/yaochangyu/ai-dev-toolkit/bdd-testing)