TDDCycle

A single red-green-refactor iteration in the test-driven development cycle, tracking the failing test, implementation, and refactoring steps.

AgileBest PracticesContinuous IntegrationExtreme ProgrammingMethodologySoftware DevelopmentTesting

Properties

Name Type Description
id string Unique identifier for the TDD cycle.
phase string Current phase of the TDD red-green-refactor cycle.
test_name string Name of the test written in the red phase.
test_description string Description of what behavior the test specifies.
test_code string The test code written to define the expected behavior.
implementation_code string The minimal implementation code written to make the test pass in the green phase.
refactored_code string The improved code produced in the refactor phase while keeping tests passing.
test_status string Whether the test is currently failing or passing.
language string Programming language used (e.g., JavaScript, Python, Java, Ruby).
framework string Testing framework used (e.g., Jest, pytest, JUnit, RSpec).
commit_hash string Git commit hash associated with this TDD cycle step.
created_at string ISO 8601 timestamp when this TDD cycle was recorded.
View JSON Schema on GitHub

JSON Schema

test-driven-development-cycle-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/test-driven-development/refs/heads/main/json-schema/test-driven-development-cycle-schema.json",
  "title": "TDDCycle",
  "description": "A single red-green-refactor iteration in the test-driven development cycle, tracking the failing test, implementation, and refactoring steps.",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the TDD cycle."
    },
    "phase": {
      "type": "string",
      "enum": ["red", "green", "refactor"],
      "description": "Current phase of the TDD red-green-refactor cycle."
    },
    "test_name": {
      "type": "string",
      "description": "Name of the test written in the red phase."
    },
    "test_description": {
      "type": "string",
      "description": "Description of what behavior the test specifies."
    },
    "test_code": {
      "type": "string",
      "description": "The test code written to define the expected behavior."
    },
    "implementation_code": {
      "type": "string",
      "description": "The minimal implementation code written to make the test pass in the green phase."
    },
    "refactored_code": {
      "type": "string",
      "description": "The improved code produced in the refactor phase while keeping tests passing."
    },
    "test_status": {
      "type": "string",
      "enum": ["failing", "passing"],
      "description": "Whether the test is currently failing or passing."
    },
    "language": {
      "type": "string",
      "description": "Programming language used (e.g., JavaScript, Python, Java, Ruby)."
    },
    "framework": {
      "type": "string",
      "description": "Testing framework used (e.g., Jest, pytest, JUnit, RSpec)."
    },
    "commit_hash": {
      "type": "string",
      "description": "Git commit hash associated with this TDD cycle step."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "ISO 8601 timestamp when this TDD cycle was recorded."
    }
  },
  "required": ["id", "phase", "test_name", "test_status"]
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/test-driven-development-cycle"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.