Back to search

University of Manitoba

Improving our understanding of test code: technical debt and evolution

Abstract

dc:description.abstract

Test code is essential for software quality, yet software maintenance research has focused mainly on production code, leaving important aspects of test-code quality and evolution underexplored. This thesis examines two dimensions of test-code maintenance: self-admitted technical debt (SATD) and method-level evolution. To understand SATD in test code, comments from open-source Java projects were manually analyzed and classified into a taxonomy that includes both source-code-like and test-specific categories. The analysis shows that test-code SATD resembles source-code SATD, while also capturing test-specific concerns absent from existing taxonomies. Evaluation of existing SATD detection tools and both open-source and proprietary large language models showed that these approaches are unreliable for detecting SATD in test code. To understand method-level test-code evolution, reliable method histories are needed. However, existing method-history generation tools have been evaluated mainly on production methods and against inaccurate oracles, leaving their reliability for test methods uncertain. To address this, updated and new oracles are constructed, and HistoryFinder is introduced as a method-history generation tool that achieves the highest overall accuracy with competitive runtime and outperforms other research-based tools. To examine test-production relationships, a test-to-production method-linking ground truth was constructed and used to evaluate existing linking techniques. Using these links and method histories, the analysis shows that some test methods are revised more frequently than their corresponding production methods and that several test-smell types are more prevalent among highly revision-prone test methods. Overall, this work contributes ground truths, tools, and empirical evidence for understanding test-code quality and evolution.

Degree

thesis:*
Level thesis:degree_level
Master of Science (M.Sc.)
Discipline thesis:degree_discipline
Computer Science
Year dc:date.issued
2026

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Islam, Md Shahidul
Advisor dc:contributor.supervisor
  • Chowdhury, Shaiful
Committee members dc:contributor.committeemember
  • Wang, Shaowei (Computer Science)
  • Mansoor, Hamid (Computer Science)

Subjects

dc:subject × 9

Rights

Language dc:language.iso
eng

Identifiers

dc:identifier.*
Handle dc:identifier.uri
http://hdl.handle.net/1993/39996

Chain of custody

source
Harvested from
University of Manitoba
Base URL
mspace.lib.umanitoba.ca/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

Islam, Md Shahidul. Improving our understanding of test code: technical debt and evolution. Master of Science (M.Sc.) thesis, 2026. http://hdl.handle.net/1993/39996