GE-GRU: Time-Aware, Low-Rank Graph Embeddings for Test Case Prioritization in Regression Testing
Keywords:
Test Case Prioritization, Truncated SVD, Graph Embeddings, Regression Testing, Gated Recurrent Unit.Abstract
Regression Testing is one of the most important processes in software maintenance, especially in a continuous integration setting, where the codebase is constantly changing. It involves rerunning past tests after software changes to ensure that the previously performed functions remain. However, it is expensive and time-consuming to perform all tests after each change without using a logical order of execution. Test Case Prioritization is concerned with ordering regression tests in such a way that the faults are revealed quickly. This paper presents GE-GRU, a time-aware graph embedding method for TCP in continuous integration. In GE-GRU, test cases are modeled as nodes in a co-failure graph, and singular value decomposition is used on the graph adjacency matrix to extract compact structural embeddings of the underlying failure relationships between test cases. These embeddings are then concatenated with the historical feature set and fed into a gated recurrent unit (GRU) neural network to recognize temporal failure patterns. Our experimental evaluation demonstrates that GE-GRU can detect faults earlier than competing approaches, achieving an APFD of 86% on Paint Control and 78% on IOF/ROL.