What Do Contribution Guidelines Say About Software Testing?
Authors:
- 28 April 2025
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 434-438
Abstract
Software testing plays a crucial role in the contribution process of open-source projects. For example, contributions introducing new features are expected to include tests, and contributions with tests are more likely to be accepted. Although most real-world projects require contributors to write tests, the specific testing practices communicated to contributors remain unclear. In this paper, we present an empirical study to understand better how software testing is approached in contribution guidelines. We analyze the guidelines of 200 Python and JavaScript open-source software projects. We find that $78 \%$ of the projects include some form of test documentation for contributors. Test documentation is located in multiple sources, including CONTRIBUTING files ($\mathbf{5 8 \%}$), external documentation ($\mathbf{2 4 \%}$), and README files ($\mathbf{8 \%}$). Furthermore, test documentation commonly explains how to run tests ($83.5 \%$), but less often provides guidance on how to write tests $(37 \%)$. It frequently covers unit tests $(71 \%)$, but rarely addresses integration ($\mathbf{2 0. 5 \%}$) and end-to-end tests ($\mathbf{1 5. 5 \%}$). Other key testing aspects are also less frequently discussed: test coverage ($\mathbf{2 5. 5 \%}$) and mocking ($\mathbf{9. 5 \%}$). We conclude by discussing implications and future research.
Keywords
All Related Versions
Funding Information
- EMI
This publication has 16 references indexed in Scilit:
- Study the correlation between the readme file of GitHub projects and their popularityJournal of Systems and Software, 2023
- Excluding code from test coverage: practices, motivations, and impactEmpirical Software Engineering, 2022
- How ReadMe files are structured in open source Java projectsInformation and Software Technology, 2022
- Do as I Do, Not as I Say: Do Contribution Guidelines Match the GitHub Contribution Process?2019
- What’s in a GitHub Star? Understanding Repository Starring Practices in a Social Coding PlatformJournal of Systems and Software, 2018
- Mock objects for testing java systemsEmpirical Software Engineering, 2018
- Categorizing the Content of GitHub README FilesEmpirical Software Engineering, 2018
- Understanding the Factors That Impact the Popularity of GitHub Repositories2016
- A systematic literature review on the barriers faced by newcomers to open source software projectsInformation and Software Technology, 2015
- Creating a shared understanding of testing culture on a social coding site2013