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

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Peruma, Anthony, AlOmar, Eman Abdullah, Aljedaani, Wajdi, Newman, Christian D., Mkaouer, Mohamed Wiem
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866917641200861184
author Peruma, Anthony
AlOmar, Eman Abdullah
Aljedaani, Wajdi
Newman, Christian D.
Mkaouer, Mohamed Wiem
author_facet Peruma, Anthony
AlOmar, Eman Abdullah
Aljedaani, Wajdi
Newman, Christian D.
Mkaouer, Mohamed Wiem
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2404_10185
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Insights from the Field: Exploring Students' Perspectives on Bad Unit Testing Practices
Peruma, Anthony
AlOmar, Eman Abdullah
Aljedaani, Wajdi
Newman, Christian D.
Mkaouer, Mohamed Wiem
Software Engineering
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.
title Insights from the Field: Exploring Students' Perspectives on Bad Unit Testing Practices
topic Software Engineering
url https://arxiv.org/abs/2404.10185