Skip to content

Commit 347c6b7

Browse files
author
Charlie Andrews
committed
Make json test output formatter represent "test_count" as num
1 parent 163adf2 commit 347c6b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libtest/formatters/json.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ impl<T: Write> JsonFormatter<T> {
5050
impl<T: Write> OutputFormatter for JsonFormatter<T> {
5151
fn write_run_start(&mut self, test_count: usize) -> io::Result<()> {
5252
self.write_message(&*format!(
53-
r#"{{ "type": "suite", "event": "started", "test_count": "{}" }}"#,
53+
r#"{{ "type": "suite", "event": "started", "test_count": {} }}"#,
5454
test_count
5555
))
5656
}

0 commit comments

Comments
 (0)