tdd-workflow

Guide Python teams through red-green-refactor cycles with pytest and moto mocking.

Updated Aug 23, 2026
Ready to run
npx skills add https://github.com/expeor/aws-automation --skill tdd-workflow-expeor
πŸ’¬ Prompt for ChatGPT / Claude Chatβ–Ό
Please help me install this Agent Skill.
Skill: tdd-workflow
Source: https://github.com/expeor/aws-automation/tree/main/.claude/skills/tdd-workflow
Command: npx skills add https://github.com/expeor/aws-automation --skill tdd-workflow-expeor

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

TDD μ›Œν¬ν”Œλ‘œμš° κ°€μ΄λ“œλŠ” ν…ŒμŠ€νŠΈ 주도 개발의 μ² ν•™κ³Ό μ‹€μ²œ 방법을 νŒ€μ΄ μΌκ΄€λ˜κ²Œ μ μš©ν•˜λ„λ‘ λ•μŠ΅λ‹ˆλ‹€. ν…ŒμŠ€νŠΈκ°€ μ½”λ“œ 섀계와 μœ μ§€ 보수의 μ£Όλ„κΆŒμ„ 갖도둝 ν•˜λŠ” 것이 μ£Ό λͺ©ν‘œμž…λ‹ˆλ‹€.

Core Features & Use Cases

  • Red-Green-Refactor μ‚¬μ΄ν΄μ˜ 싀무 κ°€μ΄λ“œμ™€ μ˜ˆμ‹œλ₯Ό μ œκ³΅ν•©λ‹ˆλ‹€.
  • pytest와 moto λͺ¨ν‚Ήμ„ ν™œμš©ν•œ ν…ŒμŠ€νŠΈ μž‘μ„± νŒ¨ν„΄ 및 베슀트 ν”„λž™ν‹°μŠ€λ₯Ό μ œμ‹œν•©λ‹ˆλ‹€.
  • ν…ŒμŠ€νŠΈ λͺ…λͺ… κ·œμΉ™, μž‘μ€ λ‹¨μœ„μ˜ ν…ŒμŠ€νŠΈ μž‘μ„±, 점진적 λ¦¬νŒ©ν† λ§μ— λŒ€ν•œ μ‹€μš©μ  ꢌμž₯사항을 ν¬ν•¨ν•©λ‹ˆλ‹€.

Quick Start

Try applying the TDD workflow to your Python project by writing a failing test first, then implementing the minimal code to pass, and finally refactoring.

Frequently Asked Questions about tdd-workflow

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

FAQPage Schema
How do I implement a red-green-refactor cycle in Python using pytest?β–Ό

The red-green-refactor cycle in pytest starts by writing a minimal failing test, then implementing the exact code required to pass it, and finally refactoring while keeping tests green. This enforces test-driven design.

What is the best way to mock AWS services in Python integration tests with moto?β–Ό

Mocking AWS services in Python integration tests with moto involves applying moto decorators to intercept boto3 calls, returning controlled dummy data. This isolates test-driven development workflows from live API costs.

Can I use test-driven development for both unit and integration testing in Python?β–Ό

Yes, test-driven development applies to both unit and integration testing in Python. The workflow defines small unit tests for logic and broader integration tests with moto mocking to verify component interactions.

How does the red-green-refactor workflow improve software quality?β–Ό

The red-green-refactor workflow improves software quality by forcing incremental test coverage and immediate feedback. Refactoring only occurs after passing tests, ensuring structural changes never break existing behavior.

What naming conventions should I follow for minimal viable tests in TDD?β–Ό

Naming conventions for minimal viable tests in TDD should clearly describe the tested behavior and expected outcome. Structuring test names around specific scenarios keeps the test suite readable and maintainable.

Do I need pytest and moto to apply this test-driven development workflow?β–Ό

Pytest and moto are the primary frameworks targeted by this test-driven development workflow. While the red-green-refactor principles apply universally, the provided patterns and examples are tailored for these specific Python tools.