tdd-workflow

Enforce Test-Driven Development with Jest/Vitest, Playwright, and API integration tests.

Updated May 24, 2023
One-click install
npx skills add https://github.com/Kimjiman/basic-arch --skill tdd-workflow-kimjiman
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-workflow
Source: https://github.com/Kimjiman/basic-arch/tree/main/.claude/skills/tdd-workflow
Command: npx skills add https://github.com/Kimjiman/basic-arch --skill tdd-workflow-kimjiman

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill ensures all code development adheres to Test-Driven Development (TDD) principles, guaranteeing high test coverage and robust, reliable code.

Core Features & Use Cases

  • Enforces TDD: Mandates writing tests before implementation.
  • Comprehensive Coverage: Requires 80%+ coverage across unit, integration, and E2E tests.
  • Structured Workflow: Guides through user journeys, test generation, implementation, and refactoring.
  • Use Case: When developing a new API endpoint, you'll first write integration tests for it, then implement the endpoint logic to make those tests pass, ensuring it functions correctly from the start.

Quick Start

Activate the tdd-workflow skill to write tests before implementing new code.

Frequently Asked Questions about tdd-workflow

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

FAQPage Schema
How do I enforce test-driven development when writing new code?

To enforce test-driven development, you write tests before implementing new code. This structured workflow requires generating tests first and achieving a minimum of 80% code coverage across unit, integration, and E2E tests for robust, reliable code.

What is the best way to achieve 80% code coverage for unit and integration tests?

The best way to achieve 80% code coverage is by following a structured TDD workflow that mandates comprehensive testing across unit, integration, and end-to-end tests. This ensures thorough testing of edge cases and error scenarios before and during implementation.

Does this TDD workflow support Jest, Vitest, and Playwright?

Yes, this TDD workflow supports Jest, Vitest, and Playwright. It utilizes specific testing patterns for these frameworks alongside API integration testing to guide you through writing tests before code implementation.

How do I write E2E tests before implementing a new API endpoint?

To write E2E tests before implementing a new API endpoint, you first define the user journeys and generate integration tests for the endpoint logic, then implement the code to make those tests pass, ensuring correct functionality from the start.

When do I need comprehensive E2E and integration tests in a TDD workflow?

You need comprehensive E2E and integration tests in a TDD workflow when developing new features like API endpoints. The process mandates covering user journeys, edge cases, and error scenarios to guarantee high test coverage and reliable code.