diff --git a/crates/testbed/src/runner.rs b/crates/testbed/src/runner.rs index 209a4bc..226c20a 100644 --- a/crates/testbed/src/runner.rs +++ b/crates/testbed/src/runner.rs @@ -3,6 +3,7 @@ use std::{path::Path, process::Stdio}; use anyhow::anyhow; use serde::{Deserialize, Serialize}; use tokio::{io::AsyncReadExt, process::Command}; +use tracing::debug; use crate::parse_env; @@ -185,7 +186,7 @@ async fn jest_runner( for word in words { if word.contains("passed") { passed = prev.parse::()? as f32; - } else if line.contains("failed") { + } else if word.contains("failed") { failed = prev.parse::()? as f32; } prev = word; @@ -241,7 +242,7 @@ async fn vitest_runner( for word in words { if word.contains("passed") { passed = prev.parse::()? as f32; - } else if line.contains("failed") { + } else if word.contains("failed") { failed = prev.parse::()? as f32; } prev = word;