diff --git a/crates/voelin-platform/tests/proxy.rs b/crates/voelin-platform/tests/proxy.rs index bead427..f9a1ed0 100644 --- a/crates/voelin-platform/tests/proxy.rs +++ b/crates/voelin-platform/tests/proxy.rs @@ -85,6 +85,11 @@ fn on_a_bus_of_its_own() { let text = format!("{}{}", String::from_utf8_lossy(&run.stdout), String::from_utf8_lossy(&run.stderr)); if run.status.success() { + // A child that ran no test (its filter matched nothing) exits 0 as well. + assert!( + text.contains("test result: ok. 1 passed;"), + "the run on its own bus exited 0 without reporting `1 passed`:\n{text}" + ); return; } // The test ran and failed, or the bus never came up.