Agents In Use
What’s new todayLast update
499 additions

How to use Claude to fix integration test failures

The author and a coworker report fixing over 200 failing integration tests for parity with the old code in one week, followed by another code review before launch.

Added news.ycombinator.comAgent: Claude
TRY A BOUNDED VERSION

Prompt to try

Editorial adaptation, not the source author’s exact prompt. Replace bracketed inputs and review tool permissions first.

Run [integration test suite] for [replacement system]. Investigate [assigned failing tests] against [old-system behavior] and implement fixes. Re-run the suite and report exactly which failures changed before preparing [pull request].

What happened

The author and a coworker report fixing over 200 failing integration tests for parity with the old code in one week, followed by another code review before launch.

Reported by saguntum on Hacker News

How the agent did it

  1. Ran the integration test suite for the rearchitecture.
  2. Passed the list of failing tests to Claude.
  3. Created a PR when changes made more tests pass.

Where a person stepped in

The author reviewed the resulting code again before launch when more well-rested.

A person approved each step before the agent continued.

Saguntum describes using Claude during a major internal-system rearchitecture aimed at scalability and maintainability under tight latency constraints. The new implementation needed to remain correct relative to the old system. After returning from an international vacation jet lagged, the author had difficulty focusing on coding and tried a test-driven agent loop instead.

The pipeline started by running an integration test suite. The author passed a list of failing tests to Claude and made a pull request when the resulting changes increased the number of passing tests. They automated as much of this loop as they could at the time. The post does not specify the automation tools or quote the prompts used.

A coworker participated, and the engineers divided failing tests between themselves. As fixes succeeded, they subdivided the remaining failures again. The author reports that together they fixed over 200 failing integration tests for parity with the old implementation in one week.

Passing more tests was the condition for making a PR, rather than the only described oversight. Before launch, the author reviewed the code again after becoming more rested. They describe the technique as extremely effective.

Who it's for: engineers migrating a system with integration tests that capture compatibility requirements.

Prompt
Suggested prompt (written by Agents In Use, not the author's)

Source: Hacker News · saguntum

Frequently asked questions

What triggered a pull request?

The author made a PR if Claude’s changes caused more integration tests to pass.

Was the generated code reviewed before launch?

Yes. The author says they reviewed the code again before launch after recovering enough to be more well-rested.

More details

Remaining steps

  1. Redistributed remaining failures between engineers after successful fixes.
  2. Reviewed the code again before launch.

About this account

Claude worked on supplied failing tests within a partly automated loop; engineers used passing-test improvements to decide when to create PRs.

Platform: Hacker News. Attribution: https://news.ycombinator.com/item?id=48431821. Prompt: Suggested (written by Agents In Use, not the author's). Sourced by the Agents In Use pipeline.

Credit: saguntum on Hacker News

Source published 7 Jun 2026

Source checked 14 Oct 2026

Tools and topics

Claude · Integration test suite · Pull requests

Integration tests · Migration · TDD

Editorial completeness: 100/100. Measures documented fields, not agent performance or verified outcomes.