{"slug": "ai-driven-development-means-test-driven-development", "title": "AI-Driven Development Means Test-Driven Development", "summary": "Jens Oliver Meiert, an engineering lead and web developer, advises that developers using AI should start with tests, as AI-driven development effectively requires test-driven development (TDD). He recommends explicitly asking AI models to first write tests for features or fixes before implementing them, which protects projects by confirming missing or broken functionality, preventing AI from veering off course, and verifying completed work. Meiert, who has worked at Google and contributed to web standards, emphasizes that this approach is safer than 'just shipping,' especially for those who are not strong programmers.", "body_md": "## AI-Driven Development Means Test-Driven Development\n\nPublished on Aug 20, 2026, filed under [development](https://meiert.com/topics/development/), [ai](https://meiert.com/topics/ai/). ([Share this post](https://shareopenly.org/share/?url=https://meiert.com/blog/ai-and-tdd/&text=AI-Driven%20Development%20Means%20Test-Driven%20Development), e.g., [on Mastodon](https://s2f.kytta.dev/?text=AI-Driven%20Development%20Means%20Test-Driven%20Development,%20by%20%40j9t%40mas.to%3A%0A%0Ahttps://meiert.com/blog/ai-and-tdd/).)\n\n**If you’re developing using AI, you need to start from tests.**\n\nIf there’s one lesson I learned from developing, maintaining, and optimizing using all sorts of models—something I missed calling out in [previous](https://meiert.com/blog/ai-tips-for-web-developers/) [tips](https://meiert.com/blog/ai-tips/)!—, then it’s this.\n\nStart from tests.\n\nThe way you do this—and you may need to be explicit as I’ve seen many models slap on tests after the fact—is by asking to *first write tests for what you create or fix—and then develop the feature or implement the fix*. Rinse and repeat—though this is intentionally open and may reflect [TDD (test-driven development)](https://webglossary.info/terms/test-driven-development/) more in spirit than in letter.\n\nStarting with tests protects your project:\n\n- You confirm that the respective feature is missing or broken (and it’s recommended that\n*you review and run the tests*or, at least, take samples). - You put a guardrail in place so that any AI instance doesn’t veer off—any work it does should lead to developing or fixing the feature.\n- You confirm that the feature was indeed built or fixed.\n- It keeps yourself centered on the problem.\n\nNow, I’m frontend developer first, web developer second, programmer last, and therefore look at some processes from an off-position. Still, working with AI has proven to me the value of test-driven development. If you’re working with AI, and aren’t a strong programmer, try starting with tests, too. While you will need to get used to testing, this is easier and safer than “just shipping.”\n\n## About Me\n\nI’m Jens (long: Jens Oliver Meiert), and I’m an engineering lead, guerrilla philosopher, and indie publisher. I’ve worked as a technical lead and engineering manager at various companies (e.g., Google); I’m an active web and tool developer (code optimization, digital defense), a contributor to web standards (like HTML, CSS, WCAG), and a book author (O’Reilly, Frontend Dogma).\n\nI love trying things—in [web development](https://meiert.com/topics/development/) and [engineering management](https://meiert.com/topics/management/), but also in [politics](https://meiert.com/topics/politics/) and [philosophy](https://meiert.com/topics/philosophy/), where I hold to one idea in particular: that we can only be well if we take good care of everyone. Here on meiert.com I talk about some of my perspectives and experiences. ([Interpret charitably](https://en.wikipedia.org/wiki/Principle_of_charity) but be critical—and [share feedback and advice](https://meiert.com/contact/) that makes my work better.)", "url": "https://wpnews.pro/news/ai-driven-development-means-test-driven-development", "canonical_source": "https://meiert.com/blog/ai-and-tdd/", "published_at": "2026-08-19 23:00:00+00:00", "updated_at": "2026-08-20 19:14:51.566794+00:00", "lang": "en", "topics": ["artificial-intelligence", "developer-tools"], "entities": ["Jens Oliver Meiert", "Google"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/ai-driven-development-means-test-driven-development", "markdown": "https://wpnews.pro/news/ai-driven-development-means-test-driven-development.md", "text": "https://wpnews.pro/news/ai-driven-development-means-test-driven-development.txt", "jsonld": "https://wpnews.pro/news/ai-driven-development-means-test-driven-development.jsonld"}}