Requirements Coverage-Guided Minimization for Natural Language Test Cases

Read full text
Authors: Rongqi Pan, Feifei Niu, Lionel Briand, Howard Hu
Cited by: 0
References: 29

Abstract

As software systems evolve, test suites tend to grow in size and often contain redundant test cases. Such redundancy increases testing effort, time, and cost. Test Suite Minimization (TSM) aims to eliminate such redundancy while preserving key properties, such as requirement coverage and fault-detection capability. In this article, we propose Requirements coverage-guided Test suite Minimization (RTM), a novel TSM approach designed for requirement-based testing (validation), which can effectively reduce test suite redundancy while ensuring full requirement coverage and a high Fault Detection Rate ( FDR ) under a fixed minimization budget. Based on common practice in critical systems where functional safety is important, we assume that test cases are specified in natural language and traced to requirements before implementation. RTM utilizes text embedding technique to convert test cases into vector representations, on which a distance function is employed to compute similarity values between test case pairs. Guided by these similarity values, a Genetic Algorithm (GA) whose population is initialized using a coverage-preserving strategy is then employed to search for an optimal subset of diverse test cases that matches the budget. We investigate three preprocessing methods for test cases, seven different text embedding techniques, three distance functions, and three initialization strategies for the GA. We evaluate RTM on an industrial automotive system dataset comprising 736 system test cases covering 54 requirements. Experimental results show that, while being scalable in terms of runtime, RTM outperforms all the baseline techniques in terms of FDR on most minimization budgets while maintaining full requirement coverage. Furthermore, we investigate the impact of test suite redundancy levels on the effectiveness of TSM, providing new insights into optimizing requirement-based test suites under practical constraints.

Fields of Study & Subjects

Natural Language Processing Techniques

Publication details

Journal / source
ACM Transactions on Software Engineering and Methodology
Volume
35
Issue
10
Pages
1–24
Publication date
20 February 2026
Language
EN