Litcius/Paper detail

Attention Transfer Reinforcement Learning for Test Case Prioritization in Continuous Integration

Qingran Su, Xing Li, Yuming Ren, Ruinan Qiu, Chunming Hu, Yongfeng Yin

2025Applied Sciences17 citationsDOIOpen Access PDF

Abstract

Continuous integration (CI), a crucial technology for accelerating software delivery, employs prioritization methods to optimize testing efficiency. Reinforcement-learning-based prioritization techniques of test cases can dynamically adjust the prioritization strategy based on test feedback. However, existing reinforcement learning models either use feature information from individual test cases or the complete feature of all test cases as input. The model’s input is fixed and does not vary based on the characteristics of the test case set. This leads to the model’s inability to handle various ranking scenarios in CI. In this paper, we propose a novel Attention Transfer Reinforcement Learning for Test Case Prioritization (ATRL-TCP) method. ATRL-TCP first leverages the richness of historical information and error rates to assess the test case set. It then determines whether the model’s input should be the feature information of a single test case or the relative order between them. This method allows for the shifting of focus based on the dataset characteristics. We validate the method on four industrial datasets and examine the impact of historical information length and error rate on its performance. The results demonstrate that ATRL-TCP has good generalization ability and achieves good ranking performance within an acceptable time.

Topics & Concepts

Transfer of learningReinforcementTest (biology)Computer scienceArtificial intelligencePsychologyBiologySocial psychologyPaleontologyEngineering and Test SystemsSoftware Reliability and Analysis ResearchSoftware Testing and Debugging Techniques
Attention Transfer Reinforcement Learning for Test Case Prioritization in Continuous Integration | Litcius