Empirical study of test case and test framework presence in public projects on github

4Citations
Citations of this article
16Readers
Mendeley users who have this article in their library.

Abstract

Automated tests are often considered an indicator of project quality. In this paper, we performed a large analysis of 6.3 M public GitHub projects using Java as the primary programming language. We created an overview of tests occurrence in publicly available GitHub projects and the use of test frameworks in them. The results showed that 52% of the projects contain at least one test case. However, there is a large number of example tests that do not represent relevant production code testing. It was also found that there is only a poor correlation between the number of the word “test” in different parts of the project (e.g., file paths, file name, file content, etc.) and the number of test cases, creation date, date of the last commit, number of commits, or number of watchers. Testing framework analysis confirmed that JUnit is the most used testing framework with a 48% share. TestNG, considered the second most popular Java unit testing framework, occurred in only 3% of the projects.

Cite

CITATION STYLE

APA

Madeja, M., Porubän, J., Chodarev, S., Sulír, M., & Gurbál’, F. (2021). Empirical study of test case and test framework presence in public projects on github. Applied Sciences (Switzerland), 11(16). https://doi.org/10.3390/app11167250

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free