MUTREX: a mutation-based generator of fault detecting strings for regular expressions

被引:9
|
作者
Arcaini, Paolo [1 ]
Gargantini, Angelo [2 ]
Riccobene, Elvinia [3 ]
机构
[1] Charles Univ Prague, Fac Math & Phys, Prague, Czech Republic
[2] Univ Bergamo, DIGIP, Bergamo, Italy
[3] Univ Milan, Dept Comp Sci, Milan, Italy
关键词
D O I
10.1109/ICSTW.2017.23
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Regular expressions (regexes) permit to describe set of strings using a pattern-based syntax. Writing a correct regex that exactly captures the desired set of strings is difficult, also because a regex is seldom syntactically incorrect, and so it is rare to detect faults at parse time. We propose a fault-based approach for generating tests for regexes. We identify fault classes representing possible mistakes a user can make when writing a regex, and we introduce the notion of distinguishing string, i.e., a string that is able to witness a fault. Then, we provide a tool, based on the automata representation of regexes, for generating distinguishing strings exposing the faults introduced in mutated versions of a regex under test. The basic generation process is improved by two techniques, namely monitoring and collecting. Experiments show that the approach produces compact test suites having a guaranteed fault detection capability, differently from other test generation approaches.
引用
收藏
页码:87 / 96
页数:10
相关论文
共 33 条
  • [21] An Empirical Study on Higher-Order Mutation-Based Fault Localization
    Wang, Haifeng
    Li, Zheng
    Liu, Yong
    Chen, Xiang
    INTERNATIONAL JOURNAL OF SOFTWARE ENGINEERING AND KNOWLEDGE ENGINEERING, 2022, 32 (01) : 1 - 35
  • [22] MuSim: Mutation-based Fault Localization Using Test Case Proximity
    Dutta, Arpita
    Jha, Amit
    Mall, Rajib
    INTERNATIONAL JOURNAL OF SOFTWARE ENGINEERING AND KNOWLEDGE ENGINEERING, 2021, 31 (05) : 725 - 744
  • [23] Investigating fault injection techniques in hardware-based deep neural networks and mutation-based fault localization
    Le Traon, Yves
    Xie, Tao
    SOFTWARE TESTING VERIFICATION & RELIABILITY, 2024, 34 (04):
  • [24] Tailored mutation-based software fault injection tool (IM-FIT)
    Yayan, Ugur
    Baglum, Cem
    SOFTWAREX, 2023, 23
  • [25] SGS: Mutant Reduction for Higher-order Mutation-based Fault Localization
    Fan, Luxi
    Li, Zheng
    Liu, Hengyuan
    Paul, Doyle
    Wang, Haifeng
    Chen, Xiang
    Liu, Yong
    2023 IEEE 47TH ANNUAL COMPUTERS, SOFTWARE, AND APPLICATIONS CONFERENCE, COMPSAC, 2023, : 870 - 875
  • [26] Optimizing Mutation-Based Fault Localization Through Contribution-Based Test Case Reduction
    Wang, Haifeng
    Yang, Kun
    Wu, Tong
    INTERNATIONAL JOURNAL OF SOFTWARE ENGINEERING AND KNOWLEDGE ENGINEERING, 2024, 34 (10) : 1537 - 1564
  • [27] IETCR: An Information Entropy Based Test Case Reduction Strategy for Mutation-Based Fault Localization
    Wang, Haifeng
    Du, Bin
    He, Jie
    Liu, Yong
    Chen, Xiang
    IEEE ACCESS, 2020, 8 (08): : 124297 - 124310
  • [28] HOTFUZ: Cost-effective higher-order mutation-based fault localization
    Jang, Jong-In
    Ryu, Duksan
    Baik, Jongmoon
    SOFTWARE TESTING VERIFICATION & RELIABILITY, 2022, 32 (08):
  • [29] Can Higher-Order Mutants Improve the Performance of Mutation-Based Fault Localization?
    Wang, Haifeng
    Li, Zheng
    Liu, Yong
    Chen, Xiang
    Paul, Doyle
    Cai, Yuxiaoyang
    Fan, Luxi
    IEEE TRANSACTIONS ON RELIABILITY, 2022, 71 (02) : 1157 - 1173
  • [30] Boosting mutation-based fault localization by effectively generating Higher-Order Mutants
    Wu, Shumei
    Yang, Binbin
    Chang, Zexing
    Li, Zheng
    Chen, Xiang
    Liu, Yong
    INFORMATION AND SOFTWARE TECHNOLOGY, 2025, 180