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 条
  • [31] A system of inference based on proof search: an extended abstract
    Miller, Dale
    2023 38TH ANNUAL ACM/IEEE SYMPOSIUM ON LOGIC IN COMPUTER SCIENCE, LICS, 2023,
  • [32] Proof of concept of a shoe based human activity monitor
    Shad, Ali
    Rodriguez-Villegas, Esther
    2012 ANNUAL INTERNATIONAL CONFERENCE OF THE IEEE ENGINEERING IN MEDICINE AND BIOLOGY SOCIETY (EMBC), 2012, : 6398 - 6401
  • [33] A PROOF-BASED FRAMEWORK FOR SEVERAL TYPES OF GROUNDING
    Poggiolesi, Francesca
    LOGIQUE ET ANALYSE, 2020, (252) : 387 - 414
  • [34] Formal proof of dynamic memory isolation based on MMU
    Jomaa, Narjes
    Nowak, David
    Grimaud, Gilles
    Hym, Samuel
    SCIENCE OF COMPUTER PROGRAMMING, 2018, 162 : 76 - 92
  • [35] Image Quality Analysis and Testing Process for Microlens Array-Based Optical Devices with High-Resolution Image Reconstruction
    Vu, Van Truong
    Yi, Hyunbean
    Park, Youngdurk
    Lee, Hocheol
    INTERNATIONAL JOURNAL OF PRECISION ENGINEERING AND MANUFACTURING, 2024, : 1215 - 1225
  • [36] Forest Fire Burn Scar Mapping Based on Modified Image Super-Resolution Reconstruction via Sparse Representation
    Zhang, Juan
    Zhang, Gui
    Xu, Haizhou
    Chu, Rong
    Yang, Yongke
    Wang, Saizhuan
    FORESTS, 2024, 15 (11):
  • [37] Vortex-to-velocity reconstruction for wall-bounded turbulence via the field-based linear stochastic estimation
    Wang, Chengyue
    Gao, Qi
    Wang, Biao
    Pan, Chong
    Wang, Jinjun
    JOURNAL OF FLUID MECHANICS, 2021, 922
  • [38] A microfluidic device for antimicrobial susceptibility testing based on a broth dilution method
    Lee, Wen-Bin
    Fu, Chien-Yu
    Chang, Wen-Hsin
    You, Huey-Ling
    Wang, Chih-Hung
    Lee, Mel S.
    Lee, Gwo-Bin
    BIOSENSORS & BIOELECTRONICS, 2017, 87 : 669 - 678
  • [39] Search-based test case implantation for testing untested configurations
    Pradhan, Dipesh
    Wang, Shuai
    Yue, Tao
    Ali, Shaukat
    Liaaen, Marius
    INFORMATION AND SOFTWARE TECHNOLOGY, 2019, 111 : 22 - 36
  • [40] Asymptotically Optimal Anomaly Detection via Sequential Testing
    Cohen, Kobi
    Zhao, Qing
    IEEE TRANSACTIONS ON SIGNAL PROCESSING, 2015, 63 (11) : 2929 - 2941