Debugging, Error Handling and Auth: Real Testing Scenarios
How I debug failing API tests, separate flaky from broken, test error handling and auth, and use AI agents for triage witho...
Read moreBlog Category
Debugging, authentication, error handling, and flaky tests from the field.
How I debug failing API tests, separate flaky from broken, test error handling and auth, and use AI agents for triage witho...
Read moreIntermittent 401s in API tests often come from token races, clock skew or stale headers, not bad credentials. How I find the cause, with agents in the loop.
Read moreA deploy turned CI red. How I trace the failing API test to its cause, rule out environment drift, and use an AI agent for triage without trusting it blindly.
Read moreToken expiry failures look different in dev, staging and CI. How I diagnose and fix them in API test suites, including long agent-driven runs.
Read moreRetries in API tests can hide real bugs. What to retry, how to log every attempt, and why model-calling tests need pass rates instead of retry-until-green.
Read moreTurn 401s and 403s into runnable, redacted repros developers trust, including auth failures hit by AI agents calling your API through scoped tool tokens.
Read moreHow I test idempotency keys in payment and order APIs: side effects, key reuse, concurrent retries, and AI agents that repeat tool calls.
Read moreA third-party outage shouldn't break CI or send a coding agent off to "fix" working code. How I isolate, tag, skip and simulate external API downtime.
Read moreMock the 429, pace the live calls, keep CI workers from colliding, and stop AI agents and eval runs from burning your API quota. My practical approach.
Read moreA flaky API test that only fails in CI is rarely random. How I find the real cause, and how to stop an AI agent from "fixing" it with a retry.
Read moreFetch OAuth tokens at runtime in pytest, refresh before expiry, keep secrets out of code and CI logs, and keep coding agents away from credentials.
Read moreTest automation should be fun, practical, and future-ready — that's the mission of TestJeff.