Perhimpunan Mahasiswa SUTD Indonesia (PADI
Large-Scale Study on Testing Patterns for Maintainability
Pages
11
Time to read
49 mins
Publication
Language
English
Pages
11
Time to read
49 mins
Publication
Language
English
This research article presents a large-scale study focused on the usage of unit testing patterns that enhance maintainability attributes in open source projects. The study investigates the application of four xUnit testing patterns aimed at improving ease of modification, diagnosis, and comprehension of unit tests. Conducted across 82,447 open source projects, the findings reveal that only 17% of these projects contain test cases, and among the 251 testing frameworks analyzed, 93 were actively utilized. The study identifies that 24% of projects with test files implemented patterns conducive to maintainability, while others did not. Qualitative analyses suggest that the adoption of these patterns was often an ad-hoc decision made by individual developers rather than a systematic approach influenced by project characteristics. The paper aims to assess the extent to which best practices for unit testing are implemented in open source projects and their impact on maintainability, providing insights into testing practices within this community.