Delphi TDD and DUnitX

Enforces strict Red-Green-Refactor TDD with DUnitX, fakes-via-interface, and naming conventions in Delphi.

Tested · Works

Test report

Verdict
Tested · Works
Score
9.2/10
Tested
Jul 14, 2026
Environment
Claude Code 2.x (agent harness)
Upstream re-checked
Aug 10, 2026 · 24b82eb

Asked it to build a discount calculator with TDD: it refused to write the implementation first, wrote a failing DUnitX test against a stub method, injected a hand-rolled TFakeCustomer implementing ICustomer instead of touching a concrete class, then filled in the minimal Green implementation -- exactly the Red-Green-Refactor order the baseline skipped straight past.

Scored on four weighted criteria — install, triggering, output vs. baseline, docs. How scoring works

  • Installs cleanly 5/5
  • Triggers reliably 5/5
  • Output vs. baseline 8/10
  • Docs & honesty 5/5

What Delphi TDD and DUnitX does

Behavioral guardrails for writing Delphi tests: forces test-first Red-Green-Refactor sequencing, DUnitX [TestFixture]/[Test]/[Setup]/[TearDown] conventions, Action_Condition_ExpectedResult naming, and dependency isolation via hand-written Fake classes implementing interfaces (Delphi has no built-in mocking framework). Triggers when a user asks for TDD, unit tests, DUnitX, or fakes/mocks in a Delphi/Object Pascal context.

How to install Delphi TDD and DUnitX

git clone https://github.com/delphicleancode/delphi-spec-kit
cd delphi-spec-kit
mkdir -p ~/.claude/skills
cp -r .claude/skills/tdd-dunitx ~/.claude/skills/delphi-test-driven-development-tdd-and-dunitx

Skills live in ~/.claude/skills/ (global) or .claude/skills/ (per-project). Restart Claude Code after installing.

Commands — how to trigger Delphi TDD and DUnitX

  • /delphi-test-driven-development-tdd-and-dunitx Enforces strict Red-Green-Refactor TDD with DUnitX, fakes-via-interface, and naming conventions in Delphi.

It also activates on plain-language prompts like these:

  • Write a DUnitX test first, then implement this Delphi discount calculator
  • Build a fake ICustomer class for testing without a Delphi mocking library
  • Follow strict red-green-refactor while adding this Object Pascal method

Frequently asked questions

Is the Delphi TDD and DUnitX skill free?
Yes. The skill itself is free from delphicleancode/delphi-spec-kit. SkillProof publishes the install command and an independent test verdict at no cost.
Does Delphi TDD and DUnitX work with Claude Code?
We tested it with Claude Code 2.x (agent harness) on Jul 14, 2026. Verdict: Tested · Works. Asked it to build a discount calculator with TDD: it refused to write the implementation first, wrote a failing DUnitX test against a stub method, injected a hand-rolled TFakeCustomer implementing ICustomer instead of touching a concrete class, then filled in the minimal Green implementation -- exactly the Red-Green-Refactor order the baseline skipped straight past.
What is the Delphi TDD and DUnitX SkillProof Score?
9.2/10 — installs cleanly 5/5, triggers reliably 5/5, output vs. baseline 8/10, docs & honesty 5/5.
How do I install Delphi TDD and DUnitX?
Copy the install command from this page, run it in your terminal, and restart Claude Code. Skills live in ~/.claude/skills/ (global) or .claude/skills/ inside a project.
Can I use Delphi TDD and DUnitX with Cursor, Copilot, Gemini CLI, Codex or other AI tools?
The SKILL.md format is native to Claude (Claude Code, Desktop, claude.ai). The instructions inside adapt to other assistants: Cursor rules, GitHub Copilot instructions, Windsurf rules, Custom GPTs, AGENTS.md for OpenAI Codex, and GEMINI.md for Google Gemini CLI — our conversion guides cover each, and the free converter on the tools page does the wrapping for you.