test-driven-development

Enforce the Test-Driven Development cycle with pytest for failing and passing tests.

1|Updated Feb 17, 2026
One-click install
npx skills add https://github.com/brittaniebuffiecsu/zerogravityclaw --skill test-driven-development-brittaniebuffiecsu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-driven-development
Source: https://github.com/brittaniebuffiecsu/zerogravityclaw/tree/main/src/hermes-core/skills/software-development/test-driven-development
Command: npx skills add https://github.com/brittaniebuffiecsu/zerogravityclaw --skill test-driven-development-brittaniebuffiecsu

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill aids in adhering to the Test-Driven Development (TDD) methodology, ensuring that code is developed with tests written before code, enhancing the quality and reliability of software.

Core Features & Use Cases

  • TDD Process Enforcement: Enforces the TDD cycle of writing a failing test first, then passing the test with minimal code, and finally refactoring without breaking the tests.
  • Integration with Testing Tools: Facilitates running tests using pytest to verify that the tests fail correctly before and pass after writing code.
  • Guidance and Best Practices: Offers comprehensive guidelines on when to use TDD, common mistakes to avoid, and strategies for troubleshooting.

Quick Start

Execute the following commands in your terminal to get started with TDD:

  • pytest tests/test_feature.py::test_specific_behavior -v to run the specific test and verify it fails.
  • pytest tests/test_feature.py::test_specific_behavior to verify the test passes with minimal code.
  • pytest tests/ -q to run all tests to check for regressions.

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 using Test-Driven Development with pytest in my workflow?

To start Test-Driven Development with pytest, write a failing test first, execute it using specific pytest commands to verify the failure, then write minimal code to pass the test before refactoring.

What is the standard TDD cycle for software testing?

The standard TDD cycle for software testing involves writing a failing test first, implementing minimal code to make the test pass, and finally refactoring the code without breaking the passing tests.

When should I use TDD practices in my programming workflow?

You should use TDD practices in your programming workflow when you need to enhance software quality and reliability by ensuring all code is developed with tests written before the implementation.

How do I run specific unit tests to verify TDD behavior in pytest?

You run specific unit tests to verify TDD behavior in pytest by executing commands like `pytest tests/test_feature.py::test_specific_behavior -v` to check failures and passing states.

What are common mistakes to avoid when implementing Test-Driven Development?

Common mistakes to avoid when implementing Test-Driven Development include skipping the initial failing test step or writing excessive code before verifying test passes, which TDD guidance helps troubleshoot and prevent.

Does TDD require any specific dependencies to enforce the testing workflow?

TDD requires the pytest framework to enforce the testing workflow, but the Skill itself operates without external dependencies, utilizing internal scripts to guide the development process.