Skip to Main content Skip to Navigation
Journal articles

A Comprehensive Study of Pseudo-tested Methods

Oscar Luis Vera-Pérez 1, * Benjamin Danglot 2 Martin Monperrus 3 Benoit Baudry 3
* Corresponding author
1 DiverSe - Diversity-centric Software Engineering
Inria Rennes – Bretagne Atlantique , IRISA-D4 - LANGAGE ET GÉNIE LOGICIEL
2 SPIRALS - Self-adaptation for distributed services and large software systems
Inria Lille - Nord Europe, CRIStAL - Centre de Recherche en Informatique, Signal et Automatique de Lille - UMR 9189
Abstract : Pseudo-tested methods are defined as follows: they are covered by the test suite, yet no test case fails when the method body is removed, i.e., when all the effects of this method are suppressed. This intriguing concept was coined in 2016, by Niedermayr and colleagues, who showed that such methods are systematically present, even in well-tested projects with high statement coverage. This work presents a novel analysis of pseudo-tested methods. First, we run a replication of Niedermayr's study with 28K+ methods, enhancing its external validity thanks to the use of new tools and new study subjects. Second, we perform a systematic characterization of these methods, both quantitatively and qualitatively with an extensive manual analysis of 101 pseudo-tested methods. The first part of the study confirms Niedermayr's results: pseudo-tested methods exist in all our subjects. Our in-depth characterization of pseudo-tested methods leads to two key insights: pseudo-tested methods are significantly less tested than the other methods; yet, for most of them, the developers would not pay the testing price to fix this situation. This calls for future work on targeted test generation to specify those pseudo-tested methods without spending developer time.
Document type :
Journal articles
Complete list of metadata

Cited literature [25 references]  Display  Hide  Download
Contributor : Oscar Luis Vera-Pérez Connect in order to contact the contributor
Submitted on : Wednesday, September 19, 2018 - 9:39:04 AM
Last modification on : Wednesday, November 3, 2021 - 8:09:42 AM


Files produced by the author(s)



Oscar Luis Vera-Pérez, Benjamin Danglot, Martin Monperrus, Benoit Baudry. A Comprehensive Study of Pseudo-tested Methods. Empirical Software Engineering, Springer Verlag, 2018, pp.1-33. ⟨10.1007/s10664-018-9653-2⟩. ⟨hal-01867423v2⟩



Record views


Files downloads