{"slug": "ai-assisted-development-means-test-first-development", "title": "AI-Assisted Development Means Test-First Development", "summary": "Jens Oliver Meiert, an engineering lead and web developer, argues that developers using AI must adopt a test-first approach, writing tests before implementing features or fixes to protect projects and keep AI work on track. He updated the post on August 22, 2026, to clarify that 'test first' is more accurate than 'test-driven development' after feedback from Ted M. Young and Benjamin Eskola.", "body_md": "## AI-Assisted Development Means Test-First Development\n\nPublished on Aug 20, 2026 (updated Aug 22, 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-tests/&text=AI-Assisted%20Development%20Means%20Test-First%20Development), e.g., [on Mastodon](https://s2f.kytta.dev/?text=AI-Assisted%20Development%20Means%20Test-First%20Development,%20by%20%40j9t%40mas.to%3A%0A%0Ahttps://meiert.com/blog/ai-and-tests/).)\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.\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-first 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### Update (August 22, 2026)\n\nThe first version of this post linked the approach to [test-driven development](https://webglossary.info/terms/test-driven-development/). Readers on Mastodon—thanks [Ted M. Young](https://ted.dev/) and [Benjamin Eskola](https://eskola.uk/)—pointed out that this would not be accurate, that “test first” would be more appropriate. I do understand there to be a connection between test-first and TDD, but with my background as mentioned, I appreciate the feedback—and hence updated the post. “Test first” does well match the spirit of what I learned to be effective.\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-assisted-development-means-test-first-development", "canonical_source": "https://meiert.com/blog/ai-and-tests/", "published_at": "2026-08-19 23:00:00+00:00", "updated_at": "2026-08-22 10:42:54.894646+00:00", "lang": "en", "topics": ["developer-tools", "artificial-intelligence"], "entities": ["Jens Oliver Meiert", "Ted M. Young", "Benjamin Eskola", "Google"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/ai-assisted-development-means-test-first-development", "markdown": "https://wpnews.pro/news/ai-assisted-development-means-test-first-development.md", "text": "https://wpnews.pro/news/ai-assisted-development-means-test-first-development.txt", "jsonld": "https://wpnews.pro/news/ai-assisted-development-means-test-first-development.jsonld"}}