Expand description

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

With random seed:

use circus_test::with_random_seed;

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

With fixed seed:

use circus_test::with_seed;

#[with_seed(42)]
#[test]
fn random_seed(seed: u64) {
    println!("{}", seed);
}

Attribute Macros

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

Allow injection of a fixed seed upon a test.