English

Requirements Coverage-Guided Minimization for Natural Language Test Cases

Software Engineering 2026-02-24 v4

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 paper, we propose RTM (Requirement coverage-guided Test suite Minimization), 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 test cases are specified in natural language and traced to requirements before being implemented. RTM preprocesses test cases using three different preprocessing methods, and then converts them into vector representations using seven text embedding techniques. Similarity values between vectors are computed utilizing three distance functions. A Genetic Algorithm, whose population is initialized by coverage-preserving initialization strategies, is then employed to identify an optimized subset containing diverse test cases matching the set budget. We evaluate RTM on an industrial automotive system dataset comprising 736736 system test cases and 5454 requirements. Experimental results show that RTM consistently outperforms baseline techniques in terms of FDR across different 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.

Keywords

Cite

@article{arxiv.2505.20004,
  title  = {Requirements Coverage-Guided Minimization for Natural Language Test Cases},
  author = {Rongqi Pan and Feifei Niu and Lionel C. Briand and Hanyang Hu},
  journal= {arXiv preprint arXiv:2505.20004},
  year   = {2026}
}

Comments

Accepted at ACM Transactions on Software Engineering and Methodology (TOSEM)

R2 v1 2026-07-01T02:39:39.734Z