Hierarchical Delta Debugging for Developer-Written C# Unit Tests

Title Hierarchical Delta Debugging for Developer-Written C# Unit Tests
Creator Wixom, Skylor
Contributors Christi, Arpit (advisor)
Collection Name Master of Computer Science
Abstract A failing unit test usually runs more code than the fault it exposes. Failure-inducing and failure-preserving test case reduction helps developers in debugging and also in automatic fault localization. ReduSharptor, by Weber and Christi, reduces failing C# unit tests using the Delta Debugging (DD) algorithm. ReduSharptor uses the statement as its reduction unit. In this thesis, we implement the Hierarchical Delta Debugging (HDD) algorithm for test reduction as ReduSharptor.HDD and evaluate it on open source C# test projects. HDD exploits the hierarchical nature of the Abstract Syntax Tree (AST) of the program as generated by the Roslyn C# compiler to accurately reduce tests. We implement a top-down reduction approach in the HDD implementation, where the top-level statements are considered for reduction first, before moving to the next; level in the AST. We evaluate the HDD algorithm on 32 synthetic mutation failures of developer-written unit tests from five open source projects by comparing it to a human-generated ground truth. The implementation achieves a 62.3% reduction in terms of statements with 97.1% precision and 95.9% recall every disagreement came from a failure with more than one minimal set of statements. We further compare HDD with DD on five; tree-structured tests, whose tree structure comes from conditional statements, loops and similar constructs. In three of these cases the HDD-based implementation achieves better reduction than DD.
Subject C# (Computer program language); Computer software--Testing--Automation; Debugging in computer science; Algorithms; Computer software--Quality control
Keywords Computer Science
Digital Publisher Digitized by Special Collections & University Archives, Stewart Library, Weber State University.
Date 2026-08
Medium theses
Type Text
Access Extent 59 page pdf
Conversion Specifications Adobe Acrobat
Language eng
Rights The author has granted Weber State University Archives a limited, non-exclusive, royalty-free license to reproduce his or her thesis, in whole or in part, in electronic or paper form and to make it available to the general public at no charge. The author retains all other rights. For further information: IN COPYRIGHT - EDUCATIONAL USE PERMITTED
Source University Archives Electronic Records: Master of Computer Science. Stewart Library, Weber State University
OCR Text Show
Format application/pdf
ARK ark:/87278/s6ymfxkx
Setname wsu_smt
ID 192060
Reference URL https://digital.weber.edu/ark:/87278/s6ymfxkx