Back to search

Rochester Institute of Technology

Test Naming Failures. An Exploratory Study of Bad Naming Practices in Test Code

Abstract

dc:description.abstract

Unit tests are a key component during the software development process, helping ensure that a developer's code is functioning as expected. Developers interact with unit tests when trying to understand, maintain, and when updating code. Good test names are essential for making these various processes easier, which is important considering the substantial costs and effort of software maintenance. Despite this, it has been found that the quality of test code is often lacking, specifically when it comes to test names. When a test fails, its name is often the first thing developers will see when trying to fix the failure, therefore it is important that names are of high quality in order to help with the debugging process. The objective of this work was to find anti-patterns having to do with test method names that may have a negative impact on developer comprehension. In order to do this, a grounded theory study was conducted on 12 open-source Java and C# GitHub projects. From this dataset, many patterns were discovered to be common throughout the test code. Some of these patterns fit the necessary criteria of anti-patterns that would probably hinder developer comprehension. With the avoidance of these anti-patterns it is believed that developers will be able to write better test names that can help speed the time to debug errors as test names will be more comprehensive.

Degree

thesis:*
Name thesis:degree_name
Software Engineering (MS)
Level thesis:degree_level
Thesis
Discipline thesis:degree_discipline
Software Engineering (GCCIS)

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Wigent, Zachariah
Contributors dc:contributor
  • J Scott Hawker

Subjects

dc:subject × 3

Identifiers

dc:identifier.*
Repository record dc:identifier
https://repository.rit.edu/theses/11053

Chain of custody

source
Harvested from
Rochester Institute of Technology
Base URL
repository.rit.edu/do/oai/
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

Wigent, Zachariah. Test Naming Failures. An Exploratory Study of Bad Naming Practices in Test Code. Thesis thesis, https://repository.rit.edu/theses/11053