Closed
Description
rust/library/test/src/formatters/junit.rs
Line 36 in 24ae996
Hello, is there a reason to include this newline at the start?
@yaahc i'm tagging you, looks like it was your commit.
I'm trying to use junit format in github actions, and with this line, generated output could not be parsed by python junitparser. Sure it could be fixed there, but i don't think of any particular reason why this newline is needed.
cargo test -- -Z unstable-options --format junit > results.xml
...
2022-01-29 10:26:06 +0000 - publish-unit-test-results - INFO - reading results.xml
2022-01-29 10:26:06 +0000 - publish - ERROR - Error processing result file: XML or text declaration not at start of entity: line 2, column 0
Also, those ending newlines isn't neccessary (but hopefully they aren't breaking anything).
Or maybe I doing something wrong here?
Metadata
Metadata
Assignees
Labels
Area: `#[test]` / the `test` libraryCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Help is requested to fix this issue.Relevant to the cargo team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.