#![allow(unused_imports)]
use error_tools as the_module;
mod inc;
#[ cfg(test) ]
mod run_aggregated_tests
{
use super :: *;
use std ::process ::Command;
#[ test ]
fn run_test_tools_aggregated_nextest_suite()
{
let output = Command ::new("cargo")
.args(["nextest", "run", "--all-features"])
.current_dir("../test_tools") .env("RUSTFLAGS", "-D warnings") .output()
.expect("Failed to execute test_tools nextest");
if output.status.success()
{
let stdout = String ::from_utf8_lossy(&output.stdout);
println!("✅ Successfully ran aggregated test suite: ");
if let Some(summary_line) = stdout.lines().find(|line| line.trim().starts_with("Summary"))
{
println!("📊 {}", summary_line.trim());
}
if let Some(test_count_line) = stdout.lines().rev().find(|line| line.contains("tests run: "))
{
println!("📈 {}", test_count_line.trim());
}
} else {
let stderr = String ::from_utf8_lossy(&output.stderr);
eprintln!("test_tools aggregated nextest failed: \n{stderr}");
}
}
}