Make json test output formatter represent "test_count" as num

This commit is contained in:
Charlie Andrews 2018-08-31 14:42:01 -05:00
parent 163adf2860
commit 347c6b76a0
No known key found for this signature in database
GPG Key ID: 70FDC90EDC588CA0

View File

@ -50,7 +50,7 @@ fn write_event(
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
))
}