monkey_test 0.1.1

A property based testing (PBT) tool like QuickCheck, ScalaCheck and other deriviatives thereof, for the Rust programming language.
Documentation

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

use monkey_test::*;

#[test]
#[should_panic(expected = "Property failed!\nCounterexample: 15")]
fn test_that_will_faill() {
    monkey_test()
        .with_generator(gen::u8::any())
        .assert_true(|x: u8| x < 15)
}

Getting started

In Cargo.toml, add

[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.