Test-Driven Development · JSON Structure

Test Driven Development Cycle Structure

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

Type: object Properties: 12 Required: 4
AgileBest PracticesContinuous IntegrationExtreme ProgrammingMethodologySoftware DevelopmentTesting

TDDCycle is a JSON Structure definition published by Test-Driven Development, describing 12 properties, of which 4 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

id phase test_name test_description test_code implementation_code refactored_code test_status language framework commit_hash created_at

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

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

Work with this as data

Every JSON Structure 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 json structure

4 MCP tools reach this
  • find_json_structuresBrowse and filter every JSON Structure 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 Structure
curl "https://apis.io/api/v1/json-structures/test-driven-development-cycle-structure"
All json structure
curl "https://apis.io/api/v1/json-structures?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.