2020 · 14 citations · 9 references
ComputingComputer ScienceProgramming LanguagesSecure Software DevelopmentSoftware EngineeringDefect DetectionSoftware MaintenanceSoftware TestingStatic Code AnalysisWeb Application TestingAutomated Bug FindingTest Cases
Rotten green tests are passing tests which have at least one assertion that is not executed. They give developers a false sense of trust in the code. In this paper, we present RTj, a framework that analyzes test cases from Java projects with the goal of detecting and refactoring rotten test cases. RTj automatically discovered 418 rotten tests from 26 open-source Java projects hosted on GitHub. Using RTj, developers have an automated recommendation of the tests that need to be modified for improving the quality of the applications under test. A video is available at: https://youtu.be/Uqxf-Wzp3Mg
9