The Impact of Documentation on Test Engagement in Pull Requests in OSS
Teal Amore, Nathan Berman, Siyuan Jiang

TL;DR
This study examines how testing documentation influences contributor testing behavior in open-source projects, finding a positive correlation that suggests documentation may encourage more testing.
Contribution
It introduces the Test Engagement Ratio (TER) and analyzes its relationship with documentation comprehensiveness across 160 OSS repositories.
Findings
Weak but significant positive correlation between documentation and testing engagement (ρ=0.36, p<0.001)
Stronger correlation (ρ=0.44) in repositories with higher pull request activity
TER is moderately correlated (ρ=0.52, p<0.001) with Test Code Ratio
Abstract
Automated testing is crucial for maintaining open-source software quality. However, motivating contributors to include tests for code changes remains a challenge. While existing interventions, such as code coverage metrics and reviewer feedback, are often reactive and applied only after a pull request is opened, this study investigates whether documentation on testing can serve as a proactive measure to encourage testing behavior. In this work, we investigate the relationship between documentation on testing and contributor testing behavior. We introduce the Test Engagement Ratio (TER) to help understand testing frequency. Using data from 160 OSS repositories, we analyze the relationship between documentation comprehensiveness and TER. Our results show a weak but statistically significant positive correlation (, ), which strengthens to a moderate relationship…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
