Lesson 9 of 9 · 5 min read
Testing Tools Without a Model
Most tool bugs have nothing to do with the model, and testing them through the model is slow, costly and noisy. Four kinds of test need no model at all: example tests on the function, contract checks that the name, description, schema and result shape give a model what it needs, seeded fuzzing over generated inputs so bad arguments produce typed refusals and never crashes, and a fake backend that behaves like the real service including its timeouts, errors and partial failures. The model enters only for selection: a small labelled set of requests, run several times, checking which tool it chose and what arguments it filled. Splitting the tests this way makes the first four fast and deterministic in CI and keeps the one that needs a model small enough to run on every change.
All 19 topics with every worked answer, all lessons and courses, the full practice bank, and anything new that appears during your access.
6 months · One payment · No auto-renewal