A Generative Adversarial Imitation Learning Method for Continuous Integration Testing


연구 분야: Software Development



학회: 2024 5th International Seminar on Artificial Intelligence, Networking and Information Technology (AINIT)


초록

In Continuous Integration (CI), Test Case Prioritization (TCP) is crucial for the efficiency and effectiveness of the software testing. While Reinforcement Learning (RL) offers a promising approach for TCP, it struggles with the low failure rates of test cases in industrial CI environment, leading to sparse rewards and unstable learning efficiency. Furthermore, designing a proper reward function is challenging due to its dependency on the abstracted features of the test cases. To address these issues, we propose a Generative Adversarial Imitation Learning (GAIL) method for TCP, which allows agents to learn directly from the expert experience rather than through potentially biased reward functions. We use the Copeland method as a pairwise ranking strategy and train the agent using optimal rankings, considered as expert experience generated from previous CI cycles, leading to more stable and efficient learning. In addition, we introduce a new metric, the Average of the Percentage of Faults Detected based on Execution Time (APFDET), to evaluate the effectiveness of the proposed approach. Empirical studies are performed on six industrial datasets. The results show that GAIL has a better fault detection capability on TCP problems.


Author Profile
Zheng Li

College of Information Science and Technology Beijing University of Chemical Technology Beijing China

Andorra
Author Profile
Ying Shang

College of Information Science and Technology Beijing University of Chemical Technology Beijing China

Andorra
Author Profile
Luosen Huang

College of Information Science and Technology Beijing University of Chemical Technology Beijing China

Andorra

📄 논문 정보

발행 연도 2024년
인용수 2
출판 국가 Andorra
사이트 IEEE
좋아요 수 0

연관 논문 목록 (145건)