about summary refs log tree commit diff
path: root/src/libtest
diff options
context:
space:
mode:
authorCharlie Andrews <charlie@cloudflare.com>2018-08-31 14:42:01 -0500
committerCharlie Andrews <charlie@cloudflare.com>2018-08-31 14:42:01 -0500
commit347c6b76a001a73c994b0abd5f1f7205cd922ac2 (patch)
tree1af4ead429298dc81aa8279aeaab5e15c900e0a3 /src/libtest
parent163adf2860d0a5d9eff0e401e314de9383ff56a1 (diff)
downloadrust-347c6b76a001a73c994b0abd5f1f7205cd922ac2.tar.gz
rust-347c6b76a001a73c994b0abd5f1f7205cd922ac2.zip
Make json test output formatter represent "test_count" as num
Diffstat (limited to 'src/libtest')
-rw-r--r--src/libtest/formatters/json.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libtest/formatters/json.rs b/src/libtest/formatters/json.rs
index f7e0788a884..fc5ce5fc291 100644
--- a/src/libtest/formatters/json.rs
+++ b/src/libtest/formatters/json.rs
@@ -50,7 +50,7 @@ impl<T: Write> JsonFormatter<T> {
 impl<T: Write> OutputFormatter for JsonFormatter<T> {
     fn write_run_start(&mut self, test_count: usize) -> io::Result<()> {
         self.write_message(&*format!(
-            r#"{{ "type": "suite", "event": "started", "test_count": "{}" }}"#,
+            r#"{{ "type": "suite", "event": "started", "test_count": {} }}"#,
             test_count
         ))
     }