use assert_cmd::Command;
use predicates::prelude::*;
use testing::{examples::MANIFEST_PATH, CommandExt};
#[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());
}