A property based testing (PBT) tool like QuickCheck, ScalaCheck and other deriviatives thereof, for the Rust programming language.
❗This library is in [pre-alpha] state. Large parts of functionality is missing and API will undergo a lot of change.
```rust use monkey_test::*;
fn testthatwillfaill() { monkeytest() .withgenerator(gen::u8::any()) .asserttrue(|x: u8| x < 15) } ```
In Cargo.toml
, add
toml
[dev-dependencies]
monkey_test = "0"
Then try some small example, like the one above.
The Monkey Test documentation (docs.rs) contains additional usage examples and tries to be a complete guide to using Monkey Test and property based testing in general.
Monkey test uses the MIT license.