arrow
返回

Mining Similar Methods for Test Adaptation

delete2022-07-01
delete1
PRE
AI
D
Devika Sondhi *
M
Mayank Jobanputra
D
Divya Rani
S
Salil Purandare
S
Sakshi Sharma
R
Rahul Purandare
DOI:10.1109/TSE.2021.3057163delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Developers may choose to implement a library despite the existence of similar libraries, considering factors such as computational performance, language or platform dependency, accuracy, convenience, and completeness of an API. As a result, GitHub hosts several library projects that have overlaps in their functionalities. These overlaps have been of interest to developers from the perspective of code reuse or the preference of one implementation over the other. Through an empirical study, we explore the extent and nature of existence of these similarities in the library functions. We have further studied whether the similarity of functions across different libraries and their associated test suites can be leveraged to reveal defects in one another. We see scope for effectively using the mining of test suites from the perspective of revealing defects in a program or its documentation. Another noteworthy observation made in the study is that similar functions may exist across libraries implemented in the same language as well as in different languages. Identifying the challenges that lie in building a testing tool, we automate the entire process in Metallicus, a test mining and recommendation tool. Metallicus returns a test suite for the given input of a query function and a template for its test suite. On a dataset of query functions taken from libraries implemented in Java or Python, Metallicus revealed 46 defects.
Keyword:
Libraries
Testing
Tools
Software development management
Python
Documentation
Open source software
Test suites
mining
software testing
function similarity
AI总结

AI总结

对已上传原文的论文进行重点信息的提取,主要内容包括:简要概述、研究摘要、背景介绍、关键亮点、图文解析、展望与总结。

期刊

IEEE Transactions on Software Engineering 封面图
IEEE Transactions on Software Engineering
IF:
5.6
论文数:
2.8K
被引数:
1.1W

机构

G
gandhi institute for technological advancement
学者数:
40
论文数: 33
被引数: 0
I
indian institute of technology (iit) - madras
学者数:
5.1K
论文数: 5.2K
被引数: 1
I
indian institute of technology system (iit system)
学者数:
9.5W
论文数: 9.9W
被引数: 93
I
Indraprastha Institute of Information Technology Delhi
学者数:
933
论文数: 689
被引数: 558
学者 查看更多机构