Blogs (1) >>
ICSE 2019
Sat 25 - Fri 31 May 2019 Montreal, QC, Canada
Thu 30 May 2019 11:50 - 12:10 at Laurier - Unit Testing Chair(s): Martin Kropp

Unit tests are a tenant of agile programming methodologies, and are widely used to improve code quality and prevent code regression. A green (passing) test is usually taken as a robust sign that the code under test is valid. However, some green tests contain assertions that are never executed. We call such tests Rotten Green Tests. Rotten Green Tests represent a case worse than a broken test: they report that the code under test is valid, but in fact do not test that validity. We describe an approach to identify rotten green tests by combining simple static and dynamic call-site analyses. Our approach takes into account test helper methods, inherited helpers, and trait compositions, and has been implemented in a tool called DrTest. DrTest reports no false negatives, yet it still reports some false positives due to conditional use or multiple test contexts. Using DrTest we conducted an empirical evaluation of 19,905 real test cases in mature projects of the Pharo ecosystem. The results of the evaluation shows that the tool is effective; it detected 294 tests as rotten – green tests that contain assertions that are not executed. Some rotten tests have been “sleeping” in Pharo for at least 5 years.

Thu 30 May
Times are displayed in time zone: (GMT-04:00) Eastern Time (US & Canada) change

11:00 - 12:30: Papers - Unit Testing at Laurier
Chair(s): Martin KroppUniversity of Applied Sciences Northwestern Switzerland
icse-2019-Software-Engineering-in-Practice11:00 - 11:30
Vard AntinyanVolvo Car Group, Miroslaw StaronUniversity of Gothenburg
icse-2019-Technical-Papers11:30 - 11:50
Research paper
Yibiao YangNanjing University, China, Yuming Zhou, Hao SunUnaffiliated, Zhendong SuETH Zurich, Zhiqiang ZuoNanjing University, China, Lei XuNanjing University, Baowen Xu
icse-2019-Technical-Papers11:50 - 12:10
Julien DelplanqueUniversity of Lille, Stéphane Ducasse INRIA Lille, Guillermo PolitoUniv. Lille, CNRS, Centrale Lille, Inria, UMR 9189 - CRIStAL - Centre de Recherche en Informatique Signal et Automatique de Lille, Andrew P. BlackPortland State University and INRIA, Anne EtienEcole Polytechnique Universitaire de Lille
icse-2019-Journal-First-Paper12:10 - 12:20
Oscar Luis Vera PérezINRIA, Benjamin DanglotUniversity Lille 1 and INRIA, Martin MonperrusKTH Royal Institute of Technology, Benoit BaudryKTH Royal Institute of Technology, Sweden
Link to publication DOI Pre-print
icse-2019-Paper-Presentations12:20 - 12:30