Back to Search Start Over

Multi‐objective optimization‐based and fault localization‐oriented test case generation for novice programs.

Authors :
Liu, Yong
Yang, Zezhong
Fan, Luxi
Wu, Yonghao
Chen, Xiang
Zhou, Xiaotang
Source :
Journal of Software: Evolution & Process. May2024, p1. 22p. 7 Illustrations, 10 Charts.
Publication Year :
2024

Abstract

Summary Online judgment (OJ) systems are capable of evaluating program results by automatically executing test cases, significantly improving the efficiency of traditional guidance approaches. Moreover, existing studies attempt to assist novices through automated fault localization techniques to provide feedback to novices, which can help them quickly find the location of faulty statements. Among them, spectrum‐based fault localization (SBFL) techniques have been widely used for their lightweight and efficiency, which only requires coverage information and test results of test cases to conduct fault localization. However, manually constructing high‐quality test cases for a large number of OJ questions is tough work to complete. To solve this problem, we propose the novice program‐oriented <bold>M</bold>ulti‐Objective Optimization‐Based <bold>F</bold>ault Localization‐Oriented <bold>T</bold>est <bold>C</bold>ase <bold>G</bold>eneration (MFTCG) for automatically generating test inputs. Specifically, we use multi‐objective optimization algorithms to evolve the test case in terms of both fault localization and faulty code detection capability. We conduct experiments with 8911 programs from the well‐known public OJ platform AtCoder. The results show that our proposed approach MFTCG can achieve the best fault localization performance compared with existing automated test case generation approaches in most cases and can achieve the similar faulty code detection capability compared to manually designed test cases. [ABSTRACT FROM AUTHOR]

Details

Language :
English
ISSN :
20477473
Database :
Academic Search Index
Journal :
Journal of Software: Evolution & Process
Publication Type :
Academic Journal
Accession number :
177476945
Full Text :
https://doi.org/10.1002/smr.2679