Tests as data: ensuring AI-generated code does what we want
Source: Martin Fowler ·
Automated testing in the age of AI coding assistants is problematic: when AI agents write both production and test code, developers risk losing the assurance that automated tests protect against functional errors. Matteo Vaccari makes three claims: (1) when AI writes the code, developers become its customers; (2) therefore customer tests, not developer tests, become the primary contract between humans and AI; (3) moving that contract into test data rather than test code makes it easier to protect it from unexpected modifications by coding agents. All of this optimizes for human-readable tests
Frequently Asked Questions
What is Tests as data: ensuring AI-generated code does what we want?
Tests as data: ensuring AI-generated code does what we want is a article discovery curated from Martin Fowler. Automated testing in the age of AI coding assistants is problematic: when AI agents write both production and test code, developers risk losing the assurance that automated tests…
How can I access or experience this?
You can experience this content directly on its original host (Martin Fowler) by clicking the "Open Original" button.
Where does this content come from?
Curated from Martin Fowler by the OnSuggest team to surface the most interesting and serendipitous content on the web.
More like this
All Technology discoveries →College student develops LEGO-like, 3D-printed moon bricks
Andrew Paul, writing for Popular Science, covers a University of Arkansas project that makes interlocking bricks out of moon dust alone. Cole McCallum, then an undergraduate, worked with mechanical engineer Wan Shou on the research, published in the journal NPJ Advanced Manufacturing. Lunar regolith doesn’t contain organic matter. It’s loose, sharp-edged particles from billions of […]
280 MHz STMicro STM32G5 Cortex-M33 mixed-signal MCU targets digital power and motor control applications
Debashis Das writes on CNX Software about STMicroelectronics’ new STM32G5 series, a family of 280 MHz Arm Cortex-M33 mixed-signal microcontrollers aimed at industrial power supplies, photovoltaic inverters, EV chargers, robotics and motor control. The chips have up to 512KB flash and 112KB of SRAM with ECC, 12-bit ADCs running up to 5 MSPS, position encoder […]
Caltech robot makes history by assembling the first structure in orbit without astronauts
Zo Ahmed writes at TechSpot about ASTRA, a Caltech robot that built part of an antenna frame in low Earth orbit from loose struts and joints. Its creators say it’s the first structure assembled autonomously in space. The robot takes up about a cubic meter and carries a gantry arm, motorized parts dispensers and 11 […]
Startup gives new life to salvage Teslas by turning them into simple vans and trucks
Adam Ismail writes at The Drive about Hoffman, a small company building new vehicles out of parts pulled from used Teslas. The company previously did EV conversions for DeLoreans. Now it takes steering wheels, seats, screens, airbags, and the computers and software from Model 3 and Model Y donor cars, and puts them on its […]
SpudCell, the synthetic cell
Fluorescent microscopy of SpudCell – a synthetic cell assembled entirely from non-living chemical components – undergoing division. Credit: Kate Adamala, Adamala Lab via University of Minnesota Twin Cities Associate Professors at University of Minnesota’s College of Biological Sciences, Kate Adamala and Aaron Engelhart have led their teams to develop the world’s first synthetic cell with […]
Use the Wii Balance Board as an open source Bluetooth game controller
Jacek Fedoryński has published wii-balance-board-hid-transmitter on GitHub, a Windows app that turns a Wii Balance Board into a gamepad. Leaning left and right or forward and back can drive an analog stick axis or the analog triggers, and can press buttons once the lean passes a set threshold. The board’s own power button can act […]