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)
ADAPT is a regression test generation method that uses autonomous coding agents to generate change-centric tests for PRs.
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.
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.
After F2P validation succeeds, ADAPT reports the executable changed lines that are not covered, and the agent iteratively refines the tests based on this.
ADAPT+GPT-4o achieves an F2P rate of 62.0% (264/426).
On the 137 PRs shared with ChaCo, ADAPT achieves full patch coverage on 83.9% of PRs, while ChaCo achieves 79.6%.
On the shared PR subset, ADAPT is significantly lower than ChaCo in both time and cost.
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.
All Facts (8)
ADAPT is a regression test generation method that uses autonomous coding agents to generate change-centric tests for PRs.
50%UnverifiedThe 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.
50%UnverifiedADAPT 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.
50%UnverifiedAfter F2P validation succeeds, ADAPT reports the executable changed lines that are not covered, and the agent iteratively refines the tests based on this.
50%UnverifiedADAPT+GPT-4o achieves an F2P rate of 62.0% (264/426).
50%UnverifiedOn the 137 PRs shared with ChaCo, ADAPT achieves full patch coverage on 83.9% of PRs, while ChaCo achieves 79.6%.
50%UnverifiedOn the shared PR subset, ADAPT is significantly lower than ChaCo in both time and cost.
50%UnverifiedIn 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.
50%