Testing Best Practices: Test Design, Architecture and Agents
My testing best practices for API test architecture: layers, clients, fixtures, data and CI, and how to...
Read moreBlog Category
Test design, CI/CD integration, and best practices for reliable, maintainable suites.
My testing best practices for API test architecture: layers, clients, fixtures, data and CI, and how to...
Read moreSequential tests rarely find race conditions. How I fire truly concurrent requests in pytest, assert invariants, and test agents that retry tool calls.
Read moreTeardown that skips on failure leaves dirty state and flaky suites. How I structure cleanup in pytest and Behave, and for agents that create real resources.
Read moreEndpoint-per-file suites miss the failures users hit. How I structure API tests as journeys, and why agent tool calls need journey-level tests too.
Read moreA real failure nobody acts on erodes trust in the whole suite. How I record deferrals with strict xfail and expiry dates, and keep agents from hiding them.
Read moreGroup API test failures by category, write failure messages with context, and summarise them in CI so people and AI triage agents see patterns fast.
Read moreChange a shared test helper and dozens of tests break. How I version helpers with keyword-only APIs, deprecation warnings and agent-run migrations.
Read moreA practical tagging scheme for pytest and Behave API tests, so CI stages and coding agents each run the right subset of the suite.
Read moreNot every broken test deserves a fix. How I decide when to delete one, why agents shouldn't decide alone, and what to do with tests of LLM features.
Read moreRunning one API suite against dev, staging and production takes more than swapped URLs. Config, tags, data and guardrails for agents that run it.
Read moreMocks and real environments catch different bugs. How I decide which each API test needs, including tests for features that call an LLM.
Read moreTest data isolation isn't all or nothing. A simple rule for API suites, drawn at mutation, that holds up when coding agents write and run tests in parallel.
Read moreHow I structure API test suites so a v2 migration isn't a rewrite: isolated version contracts, schemas, parallel CI runs, and agent-assisted updates.
Read moreUnit, API and end-to-end tests do different jobs. How I layer all three, where agent-written tests belong, and where evals fit for LLM features.
Read morePre-merge, post-deploy or scheduled? Where each kind of API test belongs in CI/CD, and how to keep the gates honest when coding agents open the PRs.
Read moreTest automation should be fun, practical, and future-ready — that's the mission of TestJeff.