File tree 1 file changed +4
-1
lines changed
library/test/src/formatters
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,8 @@ impl<T: Write> JunitFormatter<T> {
29
29
impl < T : Write > OutputFormatter for JunitFormatter < T > {
30
30
fn write_run_start ( & mut self , _test_count : usize ) -> io:: Result < ( ) > {
31
31
// We write xml header on run start
32
- self . write_message ( & "<?xml version=\" 1.0\" encoding=\" UTF-8\" ?>" )
32
+ self . out . write_all ( "\n " . as_bytes ( ) ) ?;
33
+ self . write_message ( "<?xml version=\" 1.0\" encoding=\" UTF-8\" ?>" )
33
34
}
34
35
35
36
fn write_test_start ( & mut self , _desc : & TestDesc ) -> io:: Result < ( ) > {
@@ -133,6 +134,8 @@ impl<T: Write> OutputFormatter for JunitFormatter<T> {
133
134
self . write_message ( "</testsuite>" ) ?;
134
135
self . write_message ( "</testsuites>" ) ?;
135
136
137
+ self . out . write_all ( "\n \n " . as_bytes ( ) ) ?;
138
+
136
139
Ok ( state. failed == 0 )
137
140
}
138
141
}
You can’t perform that action at this time.
0 commit comments