File tree 1 file changed +9
-9
lines changed
1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -330,14 +330,14 @@ impl<T: Write> OutputFormatter for JsonFormatter<T> {
330
330
331
331
fn write_run_finish ( & mut self , state : & ConsoleTestState ) -> io:: Result < bool > {
332
332
333
- self . write_str ( & * format ! ( r# "{{ "type": "suite",
334
- "event": "{}",
335
- "passed": {},
336
- "failed": {},
337
- "allowed_fail": {},
338
- "ignored": {},
339
- "measured": {},
340
- "filtered_out": "{}" }}"# ,
333
+ self . write_str ( & * format ! ( "{{ \ " type\ " : \ " suite\" , \
334
+ \ " event\ " : \ " {}\" , \
335
+ \ " passed\ " : {}, \
336
+ \ " failed\ " : {}, \
337
+ \ " allowed_fail\ " : {}, \
338
+ \ " ignored\ " : {}, \
339
+ \ " measured\ " : {}, \
340
+ \ " filtered_out\ " : \ " {}\ " }}",
341
341
if state. failed == 0 { "ok" } else { "failed" } ,
342
342
state. passed,
343
343
state. failed + state. allowed_fail,
@@ -351,7 +351,7 @@ impl<T: Write> OutputFormatter for JsonFormatter<T> {
351
351
let output = naive_json_escape ( & * String :: from_utf8_lossy ( stdout) ) ;
352
352
353
353
self . write_str (
354
- & * format ! ( r#"{{ "type": "test_output", "name": "{}" "output": "{}" }}"# ,
354
+ & * format ! ( r#"{{ "type": "test_output", "name": "{}", "output": "{}" }}"# ,
355
355
f. name,
356
356
output) ) ?;
357
357
}
You can’t perform that action at this time.
0 commit comments