Skip to content

Sanitize display names before they are output via the ConsoleLauncher #1713

@sormuras

Description

@sormuras

New line characters may disrupt layout of the tree-based test plan rendering:

[INFO] Launching JUnit Platform 1.4.0-M1...
[INFO] .
[INFO] '-- JUnit Jupiter [OK]
[INFO]   +-- LayoutTests [OK]
[INFO]   | +-- readModuleName() [OK]
[INFO]   | | +-- module a { [OK]
[INFO]   | | +-- open module a{ [OK]
[INFO]   | | '-- what ever 
[INFO]  prefix module    a   
[INFO] { [OK]
[INFO]   | '-- checkMavenProjects() [OK]
...

Other ASCII control characters may even produce side-effects or more severe issues.

Should the tree renderer replace those control characters before emitting them?

What about other display name emitters, like reporting?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions