Monkey Test

monkey test logo

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.

Example

```rust use monkey_test::*;

[test]

[should_panic(expected = "Property failed!\nCounterexample: 15")]

fn testthatwillfaill() { monkeytest() .withgenerator(gen::u8::any()) .asserttrue(|x: u8| x < 15) } ```

Getting started

In Cargo.toml, add

toml [dev-dependencies] monkey_test = "0"

Then try some small example, like the one above.

Documentation

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.

License

Monkey test uses the MIT license.