From d344e63a2ee511c77c57a4f8db2eb05b058e018b Mon Sep 17 00:00:00 2001 From: skewb1k Date: Sun, 4 Jan 2026 09:03:09 +0300 Subject: [PATCH] fix(cli): restore test summary output for `tree-sitter test` Problem: After commit f02d7e7e335dc4d9355d4d2ca61729368bc4e959 the `tree-sitter test` command no longer printed the final test summary, leaving empty line. The `Stats` struct was embedded into `TestSummary`, and the explicit call to print it was removed. Solution: Print `parse_stats` from `TestSummary.fmt()` implementation. (cherry picked from commit 17e3c7a5c56527a179fa6e37ce7ee934493e5047) --- crates/cli/src/test.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/cli/src/test.rs b/crates/cli/src/test.rs index 3753dcea..fcb297d9 100644 --- a/crates/cli/src/test.rs +++ b/crates/cli/src/test.rs @@ -595,6 +595,8 @@ impl std::fmt::Display for TestSummary { render_assertion_results("queries", &self.query_results)?; } + write!(f, "{}", self.parse_stats)?; + Ok(()) } }