tdd-guide
Guide Test-Driven Development with AI-Powered Workflows
Writing tests after code leads to incomplete coverage and technical debt. This skill enforces TDD discipline by guiding you through red-green-refactor cycles with intelligent test generation and coverage analysis.
์คํฌ ZIP ๋ค์ด๋ก๋
Claude์์ ์ ๋ก๋
์ค์ โ ๊ธฐ๋ฅ โ ์คํฌ โ ์คํฌ ์ ๋ก๋๋ก ์ด๋
ํ ๊ธ์ ์ผ๊ณ ์ฌ์ฉ ์์
ํ ์คํธํด ๋ณด๊ธฐ
"tdd-guide" ์ฌ์ฉ ์ค์ ๋๋ค. Analyze test coverage for my user service module
์์ ๊ฒฐ๊ณผ:
- Coverage analysis: 12 functions analyzed, 8 tested, 4 untested
- Missing tests: createUser(), deleteUser(), updateUserEmail(), validatePassword()
- Recommended priority: HIGH for deleteUser (destructive operation), MEDIUM for others
- Next step: Generate test template for deleteUser function with rollback scenarios
"tdd-guide" ์ฌ์ฉ ์ค์ ๋๋ค. Generate tests for my API endpoint handler
์์ ๊ฒฐ๊ณผ:
- Test framework detected: Jest with Supertest
- Generated 6 test cases: success response, authentication failure, validation errors, rate limiting, timeout handling, database connection loss
- Test structure: Arrange-Act-Assert pattern with setup and teardown hooks
- Estimated coverage improvement: 45% to 89% for this endpoint
"tdd-guide" ์ฌ์ฉ ์ค์ ๋๋ค. Guide me through TDD for a shopping cart feature
์์ ๊ฒฐ๊ณผ:
- Step 1 RED: Write failing test for addItemToCart with quantity validation
- Step 2 GREEN: Implement minimal code to pass the test - basic item addition only
- Step 3 REFACTOR: Extract duplicate quantity logic into validateQuantity helper
- Step 4: Repeat cycle for removeItem, updateQuantity, and clearCart operations
๋ณด์ ๊ฐ์ฌ
์์ This skill is a legitimate TDD workflow tool. The 309 static findings are false positives from test fixtures and documentation examples. The code analyzes test files, generates test recommendations, and formats output - all standard development tool operations with no malicious intent.
์ํ ์์ธ
๐ ํ์ผ ์์คํ ์ก์ธ์ค (13)
๐ ํ๊ฒฝ ๋ณ์ (2)
๐ ๋คํธ์ํฌ ์ ๊ทผ (6)
โ๏ธ ์ธ๋ถ ๋ช ๋ น์ด (110)
ํ์ง ์ ์
๋ง๋ค ์ ์๋ ๊ฒ
Learn TDD fundamentals with guided examples
Get step-by-step instructions for writing your first test cases and implementing features test-first with real-time feedback.
Retrofit tests into existing untested codebases
Identify missing test coverage across legacy projects and generate comprehensive test suites to improve reliability.
Establish TDD workflows in development teams
Set up automated TDD checks in code review processes and CI pipelines to maintain high test coverage across projects.
์ด ํ๋กฌํํธ๋ฅผ ์ฌ์ฉํด ๋ณด์ธ์
Analyze my current test coverage and show me which functions in the src directory do not have corresponding unit tests
Generate a comprehensive test suite for the calculateDiscount function in src/pricing.py including edge cases and error conditions
Guide me through a TDD cycle to implement a new user authentication feature starting with test cases first
Review my test suite for the payment processing module and suggest improvements for better coverage and edge case handling
๋ชจ๋ฒ ์ฌ๋ก
- Run the coverage analysis before starting new features to establish baseline metrics
- Write tests for one function at a time following the red-green-refactor cycle completely
- Review generated test templates and customize them to match your specific business logic requirements
ํผํ๊ธฐ
- Generating all tests at once without implementing code incrementally between test cycles
- Skipping the refactor step after tests pass and accumulating technical debt in test code
- Relying solely on generated tests without adding domain-specific edge cases your team knows about
์์ฃผ ๋ฌป๋ ์ง๋ฌธ
Which programming languages and testing frameworks are supported?
Does this tool execute my tests or measure actual coverage?
Can I customize the test generation templates for my team standards?
How does the coverage analysis work without running tests?
Will this work with my existing CI/CD pipeline?
What if my codebase uses a custom testing framework?
๊ฐ๋ฐ์ ์ธ๋ถ ์ ๋ณด
์์ฑ์
alirezarezvani๋ผ์ด์ ์ค
MIT
๋ฆฌํฌ์งํ ๋ฆฌ
https://github.com/alirezarezvani/claude-skills/tree/main/engineering-team/tdd-guide์ฐธ์กฐ
main
ํ์ผ ๊ตฌ์กฐ
๐ coverage_analyzer.py
๐ expected_output.json
๐ fixture_generator.py
๐ format_detector.py
๐ framework_adapter.py
๐ HOW_TO_USE.md
๐ output_formatter.py
๐ README.md
๐ sample_coverage_report.lcov
๐ sample_input_typescript.json
๐ SKILL.md
๐ tdd_workflow.py
๐ test_generator.py