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
来源
10TH IEEE INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION WORKSHOPS - ICSTW 2017 | 2017年
关键词
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 条
  • [31] Improving the Performance of Mutation-based Fault Localization via Mutant Bias Practical Experience Report
    Du, Bin
    Cai, Yuxiaoyang
    Wang, Haifeng
    Liu, Yong
    Chen, Xiang
    2022 IEEE 33RD INTERNATIONAL SYMPOSIUM ON SOFTWARE RELIABILITY ENGINEERING (ISSRE 2022), 2022, : 309 - 320
  • [32] Delta4Ms: Improving mutation-based fault localization by eliminating mutant bias
    Liu, Hengyuan
    Li, Zheng
    Han, Baolong
    Liu, Yangtao
    Chen, Xiang
    Liu, Yong
    SOFTWARE TESTING VERIFICATION & RELIABILITY, 2024, 34 (04):
  • [33] MuFBDTester: A mutation-based test sequence generator for FBD programs implementing nuclear power plant software
    Liu, Lingjun
    Jee, Eunkyoung
    Bae, Doo-Hwan
    SOFTWARE TESTING VERIFICATION & RELIABILITY, 2022, 32 (08):