Search GimmeJob

Type at least 2 characters. Enter also searches by meaning.
QA interview question
AI, ML & LLMMiddleSpecialistTroubleshooting

A coding agent reports that all tests pass. What do you check before you believe it, and how do you stop checking this by hand?

Answer

Check what actually ran: the exact command, the commit, the real output rather than the agent's summary, and whether it was the full suite or a filtered subset. Read the test diff for skipped or deleted tests, weakened or removed assertions, widened expected values and mocks of the code under test, and confirm that a new test fails without the fix. For user-facing features, check the behaviour end to end. Then automate it: a hook or pre-completion step runs the canonical verify command and blocks 'done' on failure, a check flags weakened tests, and CI is the required gate.

Strong answer includes

  • verifies the real command, scope and output instead of trusting the summary
  • inspects test diffs for skips, deleted or weakened assertions and self-mocking
  • checks that a new test fails without the fix and verifies user-facing behaviour end to end
  • moves the check into a hook, a completion gate or required CI

Practical example

An agent says 'all 214 tests pass' after fixing a refund bug. The log shows it ran only `tests/refund`, and the diff changed `assert total == 10.05` to `assert total in (10.04, 10.05)`. The team restores the assertion and adds a Stop hook that runs the full suite and blocks completion while anything fails.

#coding-agents#agent-harness#test-review#hooks#ai-qa

Sources

Top 30 AI-Native Engineer Interview Questions and Answers [2026]Second Talent · Coding-agent workflow questions: instruction files, making project rules stick, verifying an agent's 'all tests pass', reviewing agent diffs and agent permissionsWhat is asked in a Harness Engineer interview?Outcome School · Round-by-round harness-engineer interview: the agent loop, stopping criteria, loop detection, self-correction through tests, evaluating harness changes and designing a team harnessEffective harnesses for long-running agentsAnthropic · Agents marking features complete without end-to-end checks, and the feature list, progress files and browser testing that prevent itHooks referenceAnthropic · Hook events and exit codes: feedback after a tool call and blocking the agent from stopping until a check passes