Property-Based Testing via Proof Reconstruction

被引:2
|
作者
Blanco, Roberto [1 ]
Miller, Dale [2 ,3 ]
Momigliano, Alberto [4 ]
机构
[1] INRIA Paris, Paris, France
[2] INRIA Saclay, Palaiseau, France
[3] Ecole Polytech, LIX, Palaiseau, France
[4] Univ Milan, DI, Milan, Italy
来源
PROCEEDINGS OF THE 21ST INTERNATIONAL SYMPOSIUM ON PRINCIPLES AND PRACTICE OF DECLARATIVE PROGRAMMING (PPDP 2019) | 2019年
关键词
LOGIC; SYSTEM; GENERATION; SEARCH;
D O I
10.1145/3354166.3354170
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Property-based testing (PBT) is a technique for validating code against an executable specification by automatically generating test-data. We present a proof-theoretical reconstruction of this style of testing for relational specifications and employ the Foundational Proof Certificate framework to describe test generators. We do this by presenting certain kinds of "proof outlines" that can be used to describe various common generation strategies in the PBT literature, ranging from random to exhaustive, including their combination. We also address the shrinking of counterexamples as a first step towards their explanation. Once generation is accomplished, the testing phase boils down to a standard logic programming search. After illustrating our techniques on simple, first-order (algebraic) data structures, we lift it to data structures containing bindings using.-tree syntax. The lambda Prolog programming language is capable of performing both the generation and checking of tests. We validate this approach by tackling benchmarks in the metatheory of programming languages coming from related tools such as PLT-Redex.
引用
收藏
页数:13
相关论文
共 50 条
  • [41] Practical run-time checking via unobtrusive property caching
    Stulova, Nataliia
    Morales, Jose F.
    Hermenegildo, Manuel V.
    THEORY AND PRACTICE OF LOGIC PROGRAMMING, 2015, 15 : 726 - 741
  • [42] Image Reconstruction Techniques for Compton Scattering Based Imaging: An Overview [Compton Based Image Reconstruction Approaches]
    Frandes, Mirela
    Timar, Bogdan
    Lungeanu, Diana
    CURRENT MEDICAL IMAGING, 2016, 12 (02) : 95 - 105
  • [43] Development of an Ontology Based Forensic Search Mechanism: Proof of Concept
    Slay, Jill
    Schulz, Fiona
    JOURNAL OF DIGITAL FORENSICS SECURITY AND LAW, 2006, 1 (01) : 25 - 44
  • [44] CIL Security Proof for a Password-Based Key Exchange
    Ene, Cristian
    Gritti, Clementine
    Lakhnech, Yassine
    PROVABLE SECURITY, 7TH INTERNATIONAL CONFERENCE, PROVSEC 2013, 2013, 8209 : 59 - 85
  • [45] An Automatic Testing Approach for Compiler Based on Metamorphic Testing Technique
    Tao, Qiuming
    Wu, Wei
    Zhao, Chen
    Shen, Wuwei
    17TH ASIA PACIFIC SOFTWARE ENGINEERING CONFERENCE (APSEC 2010), 2010, : 270 - 279
  • [46] THE GUI TESTING METHOD BASED ON TESTING META-MODEL
    Usaniov, Andrej
    Packevicius, Sarunas
    Motiejunas, Kestutis
    INFORMATION TECHNOLOGIES' 2010, 2010, : 233 - 237
  • [47] Electrocardiogram Reconstruction Based on Compressed Sensing
    Zhang, Zhimin
    Liu, Xinwen
    Wei, Shoushui
    Gan, Hongping
    Liu, Feifei
    Li, Yuwen
    Liu, Chengyu
    Liu, Feng
    IEEE ACCESS, 2019, 7 : 37228 - 37237
  • [48] High dynamic range three-dimensional shape reconstruction via an auto-exposure-based structured light technique
    Tang, Suming
    Zhang, Xu
    Li, Chen
    Gu, Feifei
    OPTICAL ENGINEERING, 2019, 58 (06)
  • [49] Event-driven web application testing based on model-based mutation testing
    Habibi, Elahe
    Mirian-Hosseinabadi, Seyed-Hassan
    INFORMATION AND SOFTWARE TECHNOLOGY, 2015, 67 : 159 - 179
  • [50] Targeted drug delivery to the brain via intranasal nanoemulsion: Available proof of concept and existing challenges
    Chatterjee, Bappaditya
    Gorain, Bapi
    Mohananaidu, Keithanchali
    Sengupta, Pinaki
    Mandal, Uttam Kumar
    Choudhury, Hira
    INTERNATIONAL JOURNAL OF PHARMACEUTICS, 2019, 565 : 258 - 268