Is Assertion Roulette still a test smell? An experiment from the perspective of testing education
Test smells are commonly perceived as having a negative impact on software maintainability and correctness. Research has shown that Assertion Roulette is the most pervasive smell in industrial and open-source systems. However, some recent studies argue that the impact of Assertion Roulette is not as severe as previously believed, and developers usually consider it acceptable.
The controversy over the impact of Assertion Roulette also exists in the area of testing education. To assess the impact of Assertion Roulette, we conducted a controlled empirical study with 42 CS students. We recruited participants from two populations, CS1 and a graduate testing course, to see what role experience may have in terms of this test smell’s impact. Participants were tasked with implementing a project in Java that passes provided JUnit tests. Through analysis of student-authored source code, we measured the impact of Assertion Roulette using code quality measures and testing behavior measures. Our findings show that the impact of Assertion Roulette on students in this study was minimal. Though students with exposure to the test smell began testing significantly later, they performed similarly in terms of programming quality measures. Thus, it would seem the Assertion Roulette smell is no longer a smell at all, even for less experienced populations like students.
Thu 15 SepDisplayed time zone: Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna change
14:00 - 15:15
|ParamMacros: Creating UI Automation Leveraging End-User Natural Language ParameterizationFull paper
|How Do Teaching Assistants Teach? Characterizing the Interactions Between Students and TAs in a Computer Science CourseFull paper
Yana Malysheva Washington University in St. Louis, John Allen Washington University in St. Louis, Caitlin Kelleher Washington University in St. LouisDOI
|Is Assertion Roulette still a test smell? An experiment from the perspective of testing educationShort paper
Gina Bai North Carolina State University, Kai Presler-Marshall North Carolina State University, Susan Fisk Kent State University, Kathryn Stolee North Carolina State UniversityDOI