test-driven-development

Apply red-green-refactor workflows with test templates for Python, TypeScript, and Emacs Lisp.

10|2|Updated Mar 12, 2026
One-click install
npx skills add https://github.com/viktorbezdek/skillstack --skill test-driven-development-viktorbezdek
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-driven-development
Source: https://github.com/viktorbezdek/skillstack/tree/main/test-driven-development/skills/test-driven-development
Command: npx skills add https://github.com/viktorbezdek/skillstack --skill test-driven-development-viktorbezdek

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Developers often write code without tests, leading to bugs, regressions, and fragile designs. This Skill provides a structured Test‑Driven Development workflow that ensures code is verified from the start, improving quality and confidence.

Core Features & Use Cases

  • Red‑Green‑Refactor cycle: Write a failing test, implement minimal code, then refactor safely.
  • Multi‑language support: Works with Python (pytest), TypeScript (Vitest), and Emacs Lisp (ERT).
  • Testing tiers: Unit, integration, and end‑to‑end tests with clear patterns.
  • Coverage tools: Scripts for analyzing and enforcing coverage thresholds.
  • Ready‑to‑use templates: Boilerplate test files and checklists for quick adoption.

Quick Start

Use the test‑driven‑development skill to generate a failing test for a new feature and receive step‑by‑step guidance to make it pass.

Frequently Asked Questions about test-driven-development

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

FAQPage Schema
How do I start test-driven development with pytest and Vitest?

To start test-driven development, you write a failing test, implement minimal code to pass, and refactor safely. This workflow applies to Python using pytest, TypeScript using Vitest, and Emacs Lisp using ERT.

What is the red-green-refactor cycle in TDD?

The red-green-refactor cycle is a test-driven development workflow where you write a failing test, implement the minimal code required to make it pass, and then refactor the code safely without breaking functionality.

Can I use this TDD workflow for unit, integration, and end-to-end testing?

Yes, this test-driven development workflow supports unit, integration, and end-to-end testing tiers. It provides ready-to-use boilerplate templates and clear patterns to structure your tests across Python, TypeScript, and Emacs Lisp projects.

How do I analyze and enforce code coverage thresholds in a TDD workflow?

You can analyze and enforce code coverage thresholds using the provided coverage analysis scripts. These scripts integrate into your test-driven development workflow to ensure your red-green-refactor cycles maintain reliable code verification.

Does test-driven development work with Emacs Lisp projects?

Yes, test-driven development works with Emacs Lisp projects using the ERT testing framework. The workflow provides specific test templates and reference guides to apply the red-green-refactor cycle effectively in Emacs Lisp environments.

Why should I use test-driven development for software creation?

Test-driven development ensures code is verified from the start, preventing bugs, regressions, and fragile designs. By applying a structured red-green-refactor workflow, developers improve overall code quality and confidence in software creation.