{"slug": "tests-as-data-ensuring-ai-generated-code-does-what-we-want", "title": "Tests as data: ensuring AI-generated code does what we want", "summary": "Matteo Vaccari published an article on martinfowler.com proposing that acceptance tests be stored as data rather than test code so they can define expectations for AI-generated software. Separating those expectations from the test runner, Vaccari argues, makes them easier to review and protects them from unwanted changes by coding agents.", "body_md": "# Tests as data: ensuring AI-generated code does what we want\n\n                    –\n            \n                [martinfowler.com](https://martinfowler.com/articles/tests-as-data.html)\n            –\n            \n                [Edit](https://freek.dev/admin/posts/3223/edit)\n\nMatteo Vaccari explains how readable acceptance tests, stored as data rather than test code, can define what we expect from AI-generated software. Separating those expectations from the test runner makes them easier to review and protect from unwanted changes by coding agents.\n\n                        [Read more](https://martinfowler.com/articles/tests-as-data.html)\n[martinfowler.com]", "url": "https://wpnews.pro/news/tests-as-data-ensuring-ai-generated-code-does-what-we-want", "canonical_source": "https://freek.dev/3223-tests-as-data-ensuring-ai-generated-code-does-what-we-want", "published_at": "2026-11-15 12:30:23+00:00", "updated_at": "2026-11-15 12:49:33.990699+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools"], "entities": ["Matteo Vaccari", "martinfowler.com"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/tests-as-data-ensuring-ai-generated-code-does-what-we-want", "markdown": "https://wpnews.pro/news/tests-as-data-ensuring-ai-generated-code-does-what-we-want.md", "text": "https://wpnews.pro/news/tests-as-data-ensuring-ai-generated-code-does-what-we-want.txt", "jsonld": "https://wpnews.pro/news/tests-as-data-ensuring-ai-generated-code-does-what-we-want.jsonld"}}