Insights from the Field: Exploring Students' Perspectives on Bad Unit Testing Practices

Anthony Peruma, Eman Abdullah Alomar, Wajdi Aljedaani, Christian D. Newman, Mohamed Wiem Mkaouer

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

Educating students about software testing practices is integral to the curricula of many computer science-related courses and typically involves students writing unit tests. Similar to production/source code, students might inadvertently deviate from established unit testing best practices, and introduce problematic code, referred to as test smells, into their test suites. Given the extensive catalog of test smells, it becomes challenging for students to identify test smells in their code, especially for those who lack experience with testing practices. In this experience report, we aim to increase students' awareness of bad unit testing practices, and detail the outcomes of having 184 students from three higher educational institutes utilize an IDE plugin to automatically detect test smells in their code. Our findings show that while students report on the plugin's usefulness in learning about and detecting test smells, they also identify specific test smells that they consider harmless. We anticipate that our findings will support academia in refining course curricula on unit testing and enabling educators to support students with code review strategies of test code.

Original languageEnglish
Title of host publicationITiCSE 2024 - Proceedings of the 2024 Conference Innovation and Technology in Computer Science Education
Pages101-107
Number of pages7
ISBN (Electronic)9798400706004
DOIs
StatePublished - 3 Jul 2024
Event29th Conference Innovation and Technology in Computer Science Education, ITiCSE 2024 - Milan, Italy
Duration: 8 Jul 202410 Jul 2024

Publication series

NameAnnual Conference on Innovation and Technology in Computer Science Education, ITiCSE
Volume1
ISSN (Print)1942-647X

Conference

Conference29th Conference Innovation and Technology in Computer Science Education, ITiCSE 2024
Country/TerritoryItaly
CityMilan
Period8/07/2410/07/24

Keywords

  • code quality
  • education
  • open-source tool
  • software engineering
  • test smells
  • tsdetect
  • unit testing

Fingerprint

Dive into the research topics of 'Insights from the Field: Exploring Students' Perspectives on Bad Unit Testing Practices'. Together they form a unique fingerprint.

Cite this