---
title: "Discussion on \"Getting Your AI Coding Agent to Actually Write Tests\" | Hashnode"
description: "Discussion on \"Getting Your AI Coding Agent to Actually Write Tests\". A workflow for getting AI-generated tests that catch real bugs: write the contract first, prompt with examples and edge cases, generate tests in a fresh context, and challenge every assertion."
url: "https://hashnode.com/posts/getting-your-ai-coding-agent-to-actually-write-tests/6b0bde5f85170874e161618e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Getting Your AI Coding Agent to Actually Write Tests](https://umartechtalks.hashnode.dev/getting-your-ai-coding-agent-to-actually-write-tests?utm_source=hashnode&utm_medium=feed)

A workflow for getting AI-generated tests that catch real bugs: write the contract first, prompt with examples and edge cases, generate tests in a fresh context, and challenge every assertion.

3d ago · 10 min read · umartechtalks.hashnode.dev  
Read the article

-   [#ai-coding-agents](https://hashnode.com/tag/ai-coding-agents)
-   [#laravel](https://hashnode.com/tag/laravel)
-   [#vibe-coding](https://hashnode.com/tag/vibe-coding)

## Written by

[Umar Farooq](https://hashnode.com/@umartechtalks)

@umartechtalks · Riyadh, Saudi Arabia

  
[View profile](https://hashnode.com/@umartechtalks)

Senior Software Engineer & AI Engineer in Riyadh | Laravel, Next.js, AI Agents

Senior Software Engineer &amp; AI Engineer based in Riyadh. I build with Laravel, Next.js and AI agents. Founder of Parwazio, co-founder of WorldWebTree. I write about production engineering and AI in the real world. More at itsumarfarooq.com

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
