Hegel for Rust
[!IMPORTANT] We're excited you're checking out Hegel! Hegel is in beta, and we'd love for you to try it and give any feedback you have.
As part of our beta, we may make breaking changes if it makes Hegel a better property-based testing library. If that instability bothers you, please check back in a few months for a stable release!
See https://hegel.dev/compatibility for more details.
hegel-rust is a property-based testing library for Rust. hegel-rust is based on Hypothesis, using the Hegel protocol.
Installation
To install: cargo add --dev hegeltest.
Hegel requires uv on your PATH, which we use to install the required hegel-core server component. See https://hegel.dev/reference/installation for details.
Quickstart
Here's a quick example of how to write a Hegel test:
use integers;
use TestCase;