//! Demonstrate `cargo_test_producer`: build a `Producer` that runs
//! `cargo test --no-fail-fast` and emits one `CheckResult` per test.
//!
//! The example only constructs the producer by default. Set the env var
//! `DEV_TOOLS_EXAMPLE_RUN=1` to actually spawn `cargo test` and print the
//! resulting JSON report — this is opt-in so the example stays fast in CI
//! and does not recursively invoke cargo on every run.
//!
//! ```text
//! cargo run --example cargo_test_producer
//! DEV_TOOLS_EXAMPLE_RUN=1 cargo run --example cargo_test_producer
//! ```
use cargo_test_producer;
use Producer;