Covering All the Bases: Type-Based Verification of Test Input Generators
Zhe Zhou, Ashish Mishra, Benjamin Delaware, Suresh Jagannathan
摘要
Test input generators are an important part of property-based testing (PBT) frameworks. Because PBT is intended to test deep semantic and structural properties of a program, the outputs produced by these generators can be complex data structures, constrained to satisfy properties the developer believes is most relevant to testing the function of interest. An important feature expected of these generators is that they be capable of producing all acceptable elements that satisfy the function's input type and generator-provided constraints. However, it is not readily apparent how we might validate whether a particular generator's output satisfies this coverage requirement. Typically, developers must rely on manual inspection and post-mortem analysis of test runs to determine if the generator is providing sufficient coverage; these approaches are error-prone and difficult to scale as generators become more complex. To address this important concern, we present a new refinement type-based verification procedure for validating the coverage provided by input test generators, based on a novel interpretation of types that embeds "must-style" underapproximate reasoning principles as a fundamental part of the type system. The types associated with expressions now capture the set of values guaranteed to be produced by the expression, rather than the typical formulation that uses types to represent the set of values an expression may produce. Beyond formalizing the notion of coverage types in the context of a rich core language with higher-order procedures and inductive datatypes, we also present a detailed evaluation study to justify the utility of our ideas.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 6 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Trace-Guided Synthesis of Effectful Test Generators 引用了 Incorrectness logic
- Trace-Guided Synthesis of Effectful Test Generators 引用了 A Complementary Approach to Incorrectness Typing
- Trace-Guided Synthesis of Effectful Test Generators 引用了 Local Reasoning About the Presence of Bugs: Incorrectness Separation Logic
- Trace-Guided Synthesis of Effectful Test Generators 引用了 Finding real bugs in big programs with incorrectness logic
- Trace-Guided Synthesis of Effectful Test Generators 引用了 We've Got You Covered: Type-Guided Repair of Incomplete Input Generators
- A Complementary Approach to Incorrectness Typing 引用了 Incorrectness logic
- A Complementary Approach to Incorrectness Typing 引用了 Refinement Type Refutations
- A Complementary Approach to Incorrectness Typing 引用了 Finding real bugs in big programs with incorrectness logic
- Local Reasoning About the Presence of Bugs: Incorrectness Separation Logic 引用了 Incorrectness logic
- Refinement Type Refutations 引用了 Incorrectness logic
- Refinement Type Refutations 引用了 Finding real bugs in big programs with incorrectness logic
- Finding real bugs in big programs with incorrectness logic 引用了 Incorrectness logic
- Finding real bugs in big programs with incorrectness logic 引用了 Local Reasoning About the Presence of Bugs: Incorrectness Separation Logic
- We've Got You Covered: Type-Guided Repair of Incomplete Input Generators 引用了 Data-driven abductive inference of library specifications
- We've Got You Covered: Type-Guided Repair of Incomplete Input Generators 引用了 Specification-guided component-based synthesis from effectful libraries
- Flexible and Expressive Typed Path Patterns for GQL 引用了 Incorrectness logic
- Flexible and Expressive Typed Path Patterns for GQL 引用了 Finding real bugs in big programs with incorrectness logic
引用它的顶会 Paper6
- Refinement Type RefutationsRobin Webbers, Klaus von Gleissenthall, Ranjit JhalaOOPSLA 2024 · 3 次引用
- A Complementary Approach to Incorrectness TypingCelia Mengyue Li, Sophie Pull, Steven RamsayPOPL 2026 · 2 次引用
- Trace-Guided Synthesis of Effectful Test GeneratorsZhe Zhou, Ankush Desai, Benjamin Delaware, Suresh JagannathanPLDI 2026 · 1 次引用
- We've Got You Covered: Type-Guided Repair of Incomplete Input GeneratorsPatrick LaFontaine, Zhe Zhou, Ashish Mishra, Suresh Jagannathan 等OOPSLA 2025 · 1 次引用
- Flexible and Expressive Typed Path Patterns for GQLWenjia Ye, Matías Toro, Tomás Díaz, Bruno C. d. S. Oliveira 等OOPSLA 2025 · 1 次引用
它引用的 Paper5
- Incorrectness logicPeter W. O'HearnPOPL 2020 · 122 次引用
- Local Reasoning About the Presence of Bugs: Incorrectness Separation LogicAzalea Raad, Josh Berdine, Hoang-Hai Dang, Derek Dreyer 等CAV 2020 · 70 次引用
- Finding real bugs in big programs with incorrectness logicQuang Loc Le, Azalea Raad, Jules Villard, Josh Berdine 等OOPSLA 2022 · 52 次引用
- Data-driven abductive inference of library specificationsZhe Zhou, Robert Dickerson, Benjamin Delaware, Suresh JagannathanOOPSLA 2021 · 15 次引用
- Specification-guided component-based synthesis from effectful librariesAshish Mishra, Suresh JagannathanOOPSLA 2022 · 7 次引用
相关 Paper
- PropCov: Effective Coverage Reporting for Property-Based TestingJesse Coultas, Joseph Wiseman, Luís PinaISSTA 2026
- The Search for Constrained Random GeneratorsHarrison Goldstein, Hila Peleg, Cassia Torczon, Daniel Sainati 等PLDI 2026 · 1 次引用
- Quickly generating diverse valid test inputs with reinforcement learningSameer Reddy, Caroline Lemieux, Rohan Padhye, Koushik SenICSE 2020 · 30 次引用
- Failing with Purpose: Dangling Coverage-Guided Negative Test Generation from a Mechanized P4 Type SystemJaehyun Lee, Seokhun Jeong, Sukyoung RyuFSE 2026
- Random Testing via Runtime Abstract InterpretationZain K Aamer, Benjamin C. PierceOOPSLA 2026 · 1 次引用
