circus_test

Crates.iocircus_test
lib.rscircus_test
version0.1.0
sourcesrc
created_at2021-08-02 20:13:40.152019
updated_at2022-05-17 08:13:42.829156
descriptionProcedural macro to inject a seed in your tests
homepagehttps://github.com/PierreZ/circus
repositoryhttps://github.com/PierreZ/circus
max_upload_size
id430671
size6,870
Pierre Zemb (PierreZ)

documentation

https://docs.rs/circus_test

README

Circus_test :circus_tent:

status Crates.io Version Docs.rs Build status License Minimum rustc version

Allow injection of a random seed upon a test. Can be overloaded with environment var DETERMINISTIC_SEED.

Example:

use circus_test::with_random_seed;
#[with_random_seed]
#[test]
fn random_seed(seed: u64) {
    println!("{}", seed);
}

Rust version requirements

The MSRV is Rust 1.56.0.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Commit count: 43

cargo fmt