arrow
返回

Small-Amp: Test amplification in a dynamically typed language

delete2022-07-08
delete4
delete
OA
AI
M
Mehrdad Abdi *
H
Henrique Rocha
S
Serge Demeyer
A
Alexandre Bergel
DOI:10.1007/s10664-022-10169-8delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Some test amplification tools extend a manually created test suite with additional test cases to increase the code coverage. The technique is effective, in the sense that it suggests strong and understandable test cases, generally adopted by software engineers. Unfortunately, the current state-of-the-art for test amplification heavily relies on program analysis techniques which benefit a lot from explicit type declarations present in statically typed languages. In dynamically typed languages, such type declarations are not available and as a consequence test amplification has yet to find its way to programming languages like Smalltalk, Python, Ruby and Javascript. We propose to exploit profiling information -readily obtainable by executing the associated test suite- to infer the necessary type information creating special test inputs with corresponding assertions. We evaluated this approach on 52 selected test classes from 13 mature projects in the Pharo ecosystem containing approximately 400 test methods. We show the improvement in killing new mutants and mutation coverage at least in 28 out of 52 test classes (approximate to 53%). Moreover, these generated tests are understandable by humans: 8 out of 11 pull-requests submitted were merged into the main code base (approximate to 72%). These results are comparable to the state-of-the-art, hence we conclude that test amplification is feasible for dynamically typed languages.
Keyword:
Test amplification
Pharo smalltalk

期刊

Empirical Software Engineering 封面图
Empirical Software Engineering
IF:
3.6
论文数:
2.0K
被引数:
5.3K

机构

U
University of Antwerp
学者数:
2.1W
论文数: 1.9W
被引数: 2.6W
Loyola University Maryland 封面图
Loyola University Maryland
学者数:
409
论文数: 448
被引数: 473
U
universidad de chile
学者数:
2.1W
论文数: 1.4W
被引数: 18
学者 查看更多机构
引用论文

引用论文

Cu2ZnSnS4 thin films by simple replacement reaction route for solar photovoltaic application
err2014-01-01
err0
PREAI
errDevendra Tiwari; Tapas K. Chaudhuri; Arabinda Ray; Krishan Dutt Tiwari
err分享
err收藏
Evolution of bract development and B‐class MADS box gene expression in petaloid bracts of Cornus s. l. (Cornaceae)
err2012-08-16
err0
PREAI
errChun‐Miao Feng; Xiang Liu; Yi Yu; Deyu Xie; Robert G. Franks; Qiu‐Yun (Jenny) Xiang
err分享
err收藏
Effect of oral nitrates on pulse pressure and arterial elasticity in patients aged over 65 years with refractory isolated systolic hypertension: study protocol for a randomized controlled trial
err2013-01-01
err0
errOAAI
errDaniel Abad-Pérez; Blanca Novella-Arribas; Francisco J Rodríguez-Salvanés; Luis M Sánchez-Gómez; Iluminada García-Polo; Carmen Verge-González; Carmen Suárez-Fernández
err分享
err收藏
Increased Creatine Kinase Brain Isoenzyme Concentration in Cerebrospinal Fluid with Meningitis
err1996-07-01
err0
PREAI
errM. Nussinovitch; G. Klinger; G. Soen; A. Magazanik; B. Volovitz; I. Varsano; A. Nussinovitch
err分享
err收藏
学者 查看更多内容