bdd-unit-test

Community

Automate robust BDD-style unit tests.

AuthorTing-s515
Version1.0.0
Installs0

System Documentation

What problem does it solve?

當你需要為程式碼撰寫符合 BDD 原則的單元測試時,這項技能提供結構化的指引與自動化測試生成功能,提升測試覆蓋率與一致性。

Core Features & Use Cases

  • 分析與識別公開介面:自動識別目標檔案的公開方法與介面,為測試定義範圍。
  • 場景產生與命名策略:根據 Given-When-Then 結構列出測試場景並對應命名規範。
  • 跨語言測試生成:依語言框架自動產生對應的測試檔案與目錄結構,支援 Jest (TS/JS)、xUnit (C#)、JUnit/TestNG (Java)、pytest/unittest (Python)。
  • 快速啟動輸出:可直接輸出符合專案結構的測試草稿,便於接續完善。

Quick Start

請先提供要測試的檔案或模組,系統將分析其公開介面並產生符合 Given-When-Then 結構的測試草稿。

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: bdd-unit-test
Download link: https://github.com/Ting-s515/skills/archive/main.zip#bdd-unit-test

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 223,000+ vetted skills library on demand.