Skip to main content
QUICK REVIEW

[Paper Review] What Do Contribution Guidelines Say About Software Testing?

Bruna Falcucci, Felipe Gomide|arXiv (Cornell University)|Feb 3, 2026
Software Engineering ResearchComputer Science0 citations
TL;DR

An empirical study of 200 Python and JavaScript projects shows that 78% provide test documentation for contributors, mainly in CONTRIBUTING files, detailing how to run tests and unit test types, with less focus on writing tests, integration/e2e tests, coverage, and mocking.

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 exttt{CONTRIBUTING} files (58\%), external documentation (24\%), and exttt{README} files (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 (20.5\%) and end-to-end tests (15.5\%). Other key testing aspects are also less frequently discussed: test coverage (25.5\%) and mocking (9.5\%). We conclude by discussing implications and future research.

Motivation & Objective

  • Assess how frequently test-related information is provided to contributors in real-world guidelines.
  • Identify what testing topics are covered in contributor guidelines and which are underrepresented.
  • Infer practical implications for project maintainers and researchers to improve test documentation.

Proposed method

  • Select top-100 Python and top-100 JavaScript projects on GitHub by star count.
  • Identify contribution guidelines in README/CONTRIBUTING/external docs, including non-standard locations.
  • Detect presence and location of test documentation for contributors.
  • Categorize content into run/write tests, test types, test coverage, mocking, and best practices.
  • Quantify the frequency of each content category across projects.

Experimental results

Research questions

  • RQ1RQ1: How frequently is test documentation for contributors present in the analyzed projects?
  • RQ2RQ2: What is the content of test documentation for contributors and which topics are emphasized or neglected?

Key findings

  • 78% of analyzed projects include some form of test documentation for contributors.
  • Test documentation is mainly located in CONTRIBUTING files (58%) and external documentation (24%), with README files at 8%.
  • Most content explains how to run tests (83.5%), but guidance on how to write tests is less common (37%).
  • Unit tests are the most represented test type (71%), while integration (20.5%) and end-to-end tests (15.5%) are less addressed.
  • Test coverage (25.5%), mocking (9.5%), and best practices (9%) are comparatively underrepresented.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.