Testing the past: can we still run tests in past snapshots for Java projects?

Author:

Maes-Bermejo MichelORCID,Gallego Micael,Gortázar Francisco,Robles Gregorio,Gonzalez-Barahona Jesus M.

Abstract

AbstractBuilding past snapshots of a software project has shown to be of interest both for researchers and practitioners. However, little attention has been devoted specifically to tests available in those past snapshots, which are fundamental for the maintenance of old versions still in production. The aim of this study is to determine to which extent tests of past snapshots can be executed successfully, which would mean these past snapshots are still testable. Given a software project, we build all its past snapshots from source code, including tests, and then run the tests. When tests do not result in success, we also record the reasons, allowing us to determine factors that make tests fail. We run this method on a total of 86 Java projects. On average, for 52.53% of the project snapshots on which tests can be built, all tests pass. However, on average, 94.14% of tests pass in previous snapshots when we take into account the percentage of tests passing in the snapshots used for building those tests. In real software projects, successfully running tests in past snapshots is not something that we can take for granted: we have found that in a large proportion of the projects we studied this does not happen frequently. We have found that the building from source code is the main limitation when running tests on past snapshots. However, we have found some projects for which tests run successfully in a very large fraction of past snapshots, which allows us to identify good practices. We also provide a framework and metrics to quantify testability (the extent to which we are able to run tests of a snapshot with a success result) of past snapshots from several points of view, which simplifies new analyses on this matter, and could help to measure how any project performs in this respect.

Funder

Government of Spain

Publisher

Springer Science and Business Media LLC

Reference38 articles.

1. Ieee standard glossary of software engineering terminology (1990) IEEE Std 610(12–1990):1–84. https://doi.org/10.1109/IEEESTD.1990.101064

2. Iso standard 9126-1. https://www.iso.org/standard/22749.html (Accessed May 20, 2024) (2001)

3. Iso standard 25010. https://www.iso.org/standard/35733.html (Accessed May 20, 2024) (2011)

4. Software testability. https://www.geeksforgeeks.org/software-testability/ (2023) (accessed September 8, 2023)

5. Ayewah N, Pugh W, Morgenthaler JD, Penix J, Zhou Y (2007) Using findbugs on production software. In: Companion to the 22nd ACM SIGPLAN conference on Object-oriented programming systems and applications companion, pp. 805–806. ACM

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3