Protest: An ergonomic, powerful, and feature-rich property testing library with minimal boilerplate.
reddit.comยท17hยท
Discuss: r/rust
Flag this post

I wrote a library for property based testing in rust. Iโ€™ll post part of the readme here for ease

Property-Based Testing for Rust - An ergonomic, powerful, and feature-rich property testing library with minimal boilerplate.

Features

๐Ÿš€ Ergonomic API - Test properties with closures, no boilerplate

๐ŸŽฏ Automatic Generator Inference - Smart type-based generator selection

๐Ÿ”ง Derive Macros - #[derive(Generator)] for custom types

๐Ÿ“ฆ Declarative Macros - property!, assert_property!, generator!

โšก Async Support - First-class async property testing

๐Ÿ”„ Smart Shrinking - Automatic minimal counterexample finding

๐Ÿ’พ Failure Persistence - Save and replay failing test cases (optional)

๐Ÿ”ง CLI Tool - Manage failures from the command line ...

Similar Posts

Loading similar posts...