# Tests as data: ensuring AI-generated code does what we want

> Source: <https://freek.dev/3223-tests-as-data-ensuring-ai-generated-code-does-what-we-want>
> Published: 2026-11-15 12:30:23+00:00

# Tests as data: ensuring AI-generated code does what we want

                    –
            
                [martinfowler.com](https://martinfowler.com/articles/tests-as-data.html)
            –
            
                [Edit](https://freek.dev/admin/posts/3223/edit)

Matteo 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.

                        [Read more](https://martinfowler.com/articles/tests-as-data.html)
[martinfowler.com]
