[Paper Review] Human-Agent versus Human Pull Requests: A Testing-Focused Characterization and Comparison
The study compares 6,582 human-agent PRs (HAPRs) with 3,122 human PRs (HPRs) across testing frequency, context, and test quality, finding similar test inclusion rates but larger testing extents for HAPRs and no meaningful quality difference.
AI-based coding agents are increasingly integrated into software development workflows, collaborating with developers to create pull requests (PRs). Despite their growing adoption, the role of human-agent collaboration in software testing remains poorly understood. This paper presents an empirical study of 6,582 human-agent PRs (HAPRs) and 3,122 human PRs (HPRs) from the AIDev dataset. We compare HAPRs and HPRs along three dimensions: (i) testing frequency and extent, (ii) types of testing-related changes (code-and-test co-evolution vs. test-focused), and (iii) testing quality, measured by test smells. Our findings reveal that, although the likelihood of including tests is comparable (42.9% for HAPRs vs. 40.0% for HPRs), HAPRs exhibit a larger extent of testing, nearly doubling the test-to-source line ratio found in HPRs. While test-focused task distributions are comparable, HAPRs are more likely to add new tests during co-evolution (OR=1.79), whereas HPRs prioritize modifying existing tests. Finally, although some test smell categories differ statistically, negligible effect sizes suggest no meaningful differences in quality. These insights provide the first characterization of how human-agent collaboration shapes testing practices.
Motivation & Objective
- Motivate understanding of how AI-based coding agents influence testing practices in PRs.
- Quantify testing frequency and extent in HAPRs versus HPRs.
- Examine the development contexts of testing contributions (co-evolution vs. test-focused).
- Assess testing quality via test smells to evaluate impact on maintainability.
Proposed method
- Use the AIDev dataset (version 3) to compare 6,582 HAPRs and 3,122 HPRs across four languages (Java, JavaScript, Python, TypeScript).
- Identify test and source files with language-specific heuristics derived from manual analysis and validation (precision 0.988, recall 0.982, F1 0.985).
- Measure testing at PR, file, and line levels using metrics: Count, Ratio, TF, TLoC, and related ratios.
- Classify testing contexts into co-evolution (COC) and test-focused (TFC), and testing tasks into Add, Mod, Del.
- Detect test smells with AromaDr to compute smell delta pre- and post-PR, and analyze significance with non-parametric tests.
Experimental results
Research questions
- RQ1RQ1: Do HAPRs and HPRs differ in the frequency and extent of testing contributions?
- RQ2RQ2: How do testing contributions differ in development contexts (co-evolution vs. test-focused) and task types between HAPRs and HPRs?
- RQ3RQ3: How does test quality, via test smells, compare between HAPRs and HPRs?
Key findings
- HAPRs include tests slightly more often than HPRs (42.9% vs 40.0%), with statistical significance but a small effect size (OR≈1.13).
- When tests are present, HAPRs add more test-related files and lines (higher file and line ratios; significant with small to moderate effect sizes).
- In co-evolution contexts, HAPRs are more likely to add new tests (68.4% vs 54.8%; OR=1.79); HPRs more often modify (43.5% vs 20.6%) or delete (4.8% vs 0.9%) existing tests.
- Test smells show similar distributions between groups; while some categories differ statistically, effect sizes are negligible, indicating no practical difference in quality due to human-agent collaboration.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.