arrow
返回

Rotten green tests in Java, Pharo and Python An empirical study

delete2021-09-24
delete1
delete
OA
AI
V
Vincent Aranega *
J
Julien Delplanque
M
Matías Martínez
A
Andrew P. Black
S
Sté́phane Ducasse
A
Anne Etien
C
Christopher Fuhrman
G
Guillermo Polito
DOI:10.1007/s10664-021-10016-2delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Rotten Green Tests are tests that pass, but not because the assertions they contain are true: a rotten test passes because some or all of its assertions are not actually executed. The presence of a rotten green test is a test smell, and a bad one, because the existence of a test gives us false confidence that the code under test is valid, when in fact that code may not have been tested at all. This article reports on an empirical evaluation of the tests in a corpus of projects found in the wild. We selected approximately one hundred mature projects written in each of Java, Pharo, and Python. We looked for rotten green tests in each project, taking into account test helper methods, inherited helpers, and trait composition. Previous work has shown the presence of rotten green tests in Pharo projects; the results reported here show that they are also present in Java and Python projects, and that they fall into similar categories. Furthermore, we found code bugs that were hidden by rotten tests in Pharo and Python. We also discuss two test smells -missed fail and missed skip -that arise from the misuse of testing frameworks, and which we observed in tests written in all three languages.
Keyword:
Testing
Rotten Green Tests
Empirical study
Software quality

期刊

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

机构

C
centre national de la recherche scientifique (cnrs)
学者数:
24.5W
论文数: 18.2W
被引数: 279
I
Inria
学者数:
3.5K
论文数: 2.5K
被引数: 343
C
centrale lille
学者数:
1.9K
论文数: 1.5K
被引数: 0
U
universite de lille
学者数:
2.7W
论文数: 2.0W
被引数: 15
学者 查看更多机构
引用论文

引用论文

err分享
err收藏
err
IF0
err
err0
PREAI
err
err分享
err收藏
Myeloperoxidase: Expressing Inflammation and Oxidative Stress in Cardiovascular Disease
err2013-03-01
err0
PREAI
errNikolaos Anatoliotakis; Spyridon Deftereos; Georgios Bouras; Georgios Giannopoulos; Dimitrios Tsounis; Christos Angelidis; Andreas Kaoukis; Christodoulos Stefanadis
err分享
err收藏
Demonstration of inositol 1,3,4,5-tetrakisphosphate receptor binding
err1987-11-01
err0
PREAI
errAnne B. Theibert; Surachai Supattapone; Paul F. Worley; Jay M. Baraban; James L. Meek; Solomon H. Snyder
err分享
err收藏
A comprehensive study of pseudo-tested methods
err2018-09-19
err8
errOAAI
errVera-Perez, Oscar Luis; Danglot, Benjamin; Monperrus, Martin; Baudry, Benoit
err分享
err收藏
err分享
err收藏
err分享
err收藏
学者 查看更多内容