Settings

Theme

Show HN: TDD-Guard – Test-Driven Development for Claude Code

github.com

4 points by Nizoss 4 months ago · 7 comments

Reader

NizossOP 4 months ago

Hi HN,

I believe that using guardrails with agentic coding is far more effective than simply using instructions. This plugin demonstrates it using Test-Driven Development.

TDD-Guard can now be used with Go. Other supported languages are: JS/TS, Python, PHP, with dotnet in the works. Next are Ruby and Rust. I'd love community help adding support for more test frameworks and programming languages.

Here's feedback from an early user:

> This plugin is absolutely phenomenal and has become an indispensable part of my toolkit.

> It might sound strange, but I'm moving significantly faster on both new features and refactoring tasks now. The way it works in tandem with my strict ESLint setup is brilliant!I It iterates through issues and consistently produces clean, working code. It's not an exaggeration to say you've completely changed how I think about TDD and AI in my coding process due to this plugin.

Happy to answer questions!

esafak 4 months ago

tl,dr: When your agent tries to skip tests or over-implement, TDD Guard blocks the action and explains what needs to happen instead...

Is it still golang only? Does it work with opencode?

  • NizossOP 4 months ago

    Thanks for the TL;DR!

    Go support was recently added, and TDD-Guard also works with these frameworks:

    JavaScript/TypeScript: Vitest and Jest Python: Pytest PHP: PHPUnit Go: Native go test

    Adding a new language or framework just means creating a reporter that outputs test results in a format that TDD-Guard can consume.

    I'm not familiar with Opencode. Is there something particular that interests you in it?

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection