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 条
  • [1] Mutation-based Generation Algorithm of Negative Test Strings from Regular Expressions
    Zheng L.-X.
    Yu L.-L.
    Chen H.-M.
    Chen Z.-X.
    Luo X.-Y.
    Wang X.-Y.
    Ruan Jian Xue Bao/Journal of Software, 2024, 35 (07): : 3355 - 3376
  • [2] Fault-based test generation for regular expressions by mutation
    Arcaini, Paolo
    Gargantini, Angelo
    Riccobene, Elvinia
    SOFTWARE TESTING VERIFICATION & RELIABILITY, 2019, 29 (1-2):
  • [3] Mutation-based Evolutionary Fault Localisation
    de-Freitas, Diogo M.
    Leitao-Junior, Plinio S.
    Camilo-Junior, Celso G.
    Harrison, Rachel
    2018 IEEE CONGRESS ON EVOLUTIONARY COMPUTATION (CEC), 2018, : 2291 - 2298
  • [4] Mutation-Based Graph Inference for Fault Localization
    Musco, Vincenzo
    Monperrus, Martin
    Preux, Philippe
    2016 IEEE 16TH INTERNATIONAL WORKING CONFERENCE ON SOURCE CODE ANALYSIS AND MANIPULATION (SCAM), 2016, : 97 - 106
  • [5] Mutation-Based Minimal Test Suite Generation for Boolean Expressions
    Ayav, Tolga
    Belli, Fevzi
    INTERNATIONAL JOURNAL OF SOFTWARE ENGINEERING AND KNOWLEDGE ENGINEERING, 2023, 33 (06) : 865 - 884
  • [6] Integrating neural mutation into mutation-based fault localization: A hybrid approach
    Liu, Hengyuan
    Li, Zheng
    Han, Baolong
    Chen, Xiang
    Paul, Doyle
    Liu, Yong
    JOURNAL OF SYSTEMS AND SOFTWARE, 2025, 221
  • [7] Metallaxis-FL: mutation-based fault localization
    Papadakis, Mike
    Le Traon, Yves
    SOFTWARE TESTING VERIFICATION & RELIABILITY, 2015, 25 (5-7): : 605 - 628
  • [8] Faster Mutation-based Fault Localization With A Novel Mutation Execution Strategy
    Gong, Pei
    Zhao, Ruilian
    Li, Zheng
    2015 IEEE EIGHTH INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION WORKSHOPS (ICSTW), 2015,
  • [9] A Systematic Exploration of Mutation-Based Fault Localization Formulae
    Wang, Bo
    Wei, Jinkang
    Chen, Mingda
    Chen, Chong
    Lin, Youfang
    Zhang, Jie M.
    SOFTWARE TESTING VERIFICATION & RELIABILITY, 2025, 35 (01):
  • [10] Semantic Fault Localization for Mutation-based Program Repair
    Dimovski, Aleksandar S.
    Rexhepi, Shpetim
    Velinov, Goran
    Zeqiri, Izet
    2024 13TH MEDITERRANEAN CONFERENCE ON EMBEDDED COMPUTING, MECO 2024, 2024, : 149 - 153