-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Copy link
Description
Hello!
After switching test execution from using gradle with junit platform to console launcher I noticed that
value of message attribute in JUnit xml report loosing new line characters.
e.g.
Using gradle xml :
<error message="line 1 line 2 line 3 "...Using Console launcher xml:
<error message="
line 1
line 2
line 3
"Steps to reproduce
- Run tests using gradle with junit platform. Throw multiline exception in test.
- Run tests using console launcher, throw multiline exception in test.
Context
org.junit.platform:junit-platform-console-standalone:1.11.3
org.junit.jupiter:junit-jupiter-engine:5.11.3
JRE 23
As I understand console launcher uses new open/xml report generator and gradle platform launcher uses legacy report generator, right?