[KongchangAI]
PaperAgentic Diff-Aware Patch Testing

ADAPT

A diff-aware regression test generation method for pull requests. It uses an autonomous coding agent to analyze the code diff, generate change-centric unit tests, and verify through Fail-to-Pass validation that the tests are related to the change.

Timeline (last 90 days)

Nov 13

ADAPT is a regression test generation method that uses autonomous coding agents to generate change-centric tests for PRs.

Unverified50%
Nov 13

The core workflow of ADAPT includes: analyzing the diff between the base and head versions, identifying the modified functions and their context, and planning and generating candidate unit tests.

Unverified50%
Nov 13

ADAPT is equipped with a fail-to-pass (F2P) validation tool, which requires candidate tests to fail on the base version and pass on the head version.

Unverified50%
Nov 13

After F2P validation succeeds, ADAPT reports the executable changed lines that are not covered, and the agent iteratively refines the tests based on this.

Unverified50%
Nov 13

ADAPT+GPT-4o achieves an F2P rate of 62.0% (264/426).

Unverified50%
Nov 13

On the 137 PRs shared with ChaCo, ADAPT achieves full patch coverage on 83.9% of PRs, while ChaCo achieves 79.6%.

Unverified50%
Nov 13

On the shared PR subset, ADAPT is significantly lower than ChaCo in both time and cost.

Unverified50%
Nov 13

In the human evaluation, the ADAPT tests that passed F2P validation scored an average of 4.54/5, 4.35/5 and 4.49/5 on the three dimensions of importance, assertion strength and readability, respectively.

Unverified50%

All Facts (8)

Source Articles