Back to Devoured - September 08, 2026
DEVOURED
How well do agents use test/verification techniques?

How well do agents use test/verification techniques?

Tech Dan Luu
A study of 26 different testing conditions reveals that coding agents are generally ineffective at using test techniques unless guided by human expertise.
What: Researcher Dan Luu evaluated how different test techniques (e.g., TDD, Formal Methods, Fuzzing) affect AI agent correctness, finding that agents often apply these tools superficially or incorrectly when not specifically instructed on how to execute them properly.
Why it matters: Simply instructing agents to use 'best practices' like TDD or property-based testing fails because the models lack the underlying intuition for why those techniques work, often leading to overfitted or useless tests.
Takeaway: Do not rely on agents to self-organize testing; instead, provide specific, structured prompts that guide the agent through an explicit testing workflow.
Deep dive
  • Agents consistently underperform when told to use 'best practices' without granular guidance.
  • TDD (Test-Driven Development) led to a high volume of ineffective, repetitive tests rather than improved logic.
  • Formal methods like Verus or Alloy were largely unused or used to prove trivial, irrelevant properties.
  • 'Default' behavior (no specific technique instruction) frequently outperformed forced advanced testing techniques.
  • Agents were better at using proptest (property-based testing) when specifically prompted to target interesting state paths rather than naive randomization.
  • Testing efficacy is highly sensitive to prompt structure and is not naturally captured by standard agent training.
  • High-effort iterations with minimal guidance often lead to worse results than low-effort ones with clear structural guardrails.
Decoder
  • Snapshot testing: A technique that saves the output of a function to a 'golden file' and compares future results against it.
  • Property-based testing (PBT): A testing method where you define properties that should hold true for a wide range of inputs, and a framework generates random inputs to try and disprove them.
  • Mutation testing: Evaluating test quality by deliberately introducing bugs into code to see if existing tests fail as expected.
  • TDD (Test-Driven Development): A process where tests are written before the corresponding implementation code.
Original article

Full article content is not available for inline reading.

Read the original article →

Explore all 46 articles in today's digest

Fresh dev news, AI-digested daily. Never miss a trend at devoured.fyi