Research Article Open Access

An Adaptive Machine Learning Algorithm for Resilient Higher-Order Mutant Generation

Subhasish Mohanty1, Jyotirmaya Mishra1, Sudhir Kumar Mohapatra2, Melashu Amare3 and Aliazar Deneke Deferisha4
  • 1 Department of Computer Science and Engineering, GIET University, Gunupur, Odisha, India
  • 2 Faculty of Engineering & Technology, Sri Sri University, Bhubaneswar, Odisha, India
  • 3 Departments of Software Engineering, Woldia University, Woldia, Ethiopia
  • 4 Faculty of Computing and Software Engineering, AMiT, Arba Minch University, Arba Minch, Ethiopia

Abstract

In the field of software engineering, ensuring the reliability androbustness of software is paramount, and software testing plays a criticalrole in this process. Mutation testing, a fault-based technique, evaluates theeffectiveness of test suites by introducing artificial defects, known asmutants, into programs. This research presents a novel method forgenerating higher-order mutants (HOMs) using the Chemical ReactionOptimization (CRO) algorithm, which enhances the rigor of mutation testingby creating harder-to-detect mutants. The CRO algorithm employs fourtypes of collision operators: on-wall ineffective, synthesis, decomposition,and inter-molecular ineffective, to modify mutants and simulate complexfaults. Through experimentation with iterations set at 10, 30, and 50, it wasfound that increasing the number of iterations significantly reduces thenumber of mutants and increases their detection difficulty. Notably, with 50iterations, the approach achieved a 93% reduction in mutants and loweredthe mutation score to 27.77%, demonstrating the robustness of the generatedmutants. The research further introduces the HOMUsingCRO tool, whichautomates the mutant generation and testing process, generating XML-basedreports for effective mutant analysis. The proposed approach outperformsexisting techniques in both mutant reduction and mutation score, offering amore comprehensive solution for improving software test suiteeffectiveness.

Journal of Computer Science
Volume 21 No. 5, 2025, 1187-1201

DOI: https://doi.org/10.3844/jcssp.0.1187.1201

Submitted On: 7 September 2024 Published On: 20 May 2025

How to Cite: Mohanty, S., Mishra, J., Mohapatra, S. K., Amare, M. & Deferisha, A. D. (2025). An Adaptive Machine Learning Algorithm for Resilient Higher-Order Mutant Generation. Journal of Computer Science, 21(5), 1187-1201. https://doi.org/10.3844/jcssp.0.1187.1201

  • 454 Views
  • 9 Downloads
  • 0 Citations

Download

Keywords

  • Real Fault
  • Hard to Detect Mutant
  • Chemical ReactionOptimization Algorithm
  • Mutation Testing
  • Higher-Order MutantGeneration
  • Unit Testing