test-fuzz 4.0.2

To make fuzzing Rust easy
Documentation
use assert_cmd::Command;
use predicates::prelude::*;
use testing::{examples::MANIFEST_PATH, CommandExt};

// smoelius: This test will fail if run twice because the target will have already been built.
#[test]
fn test_fuzz_log() {
    Command::new("cargo")
        .env("TEST_FUZZ_LOG", "1")
        .args([
            "test",
            "--manifest-path",
            &MANIFEST_PATH,
            "--no-run",
            "--features",
            &("test-fuzz/".to_owned() + test_fuzz::serde_format::as_feature()),
        ])
        .logged_assert()
        .success()
        .stdout(predicate::str::is_match(r"(?m)^#\[cfg\(test\)\]\nmod parse_fuzz \{$").unwrap());
}