Skip to content

Commit

Permalink
Disable Picocli's usage help auto width computation
Browse files Browse the repository at this point in the history
Fixes #3419
  • Loading branch information
sormuras authored Aug 28, 2023
1 parent e0621f5 commit 548fb69
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
sortOptions = false, //
usageHelpWidth = 95, //
showAtFileInUsageHelp = true, //
usageHelpAutoWidth = true, //
usageHelpAutoWidth = false, // https://github.com/remkop/picocli/issues/1104
description = "Launches the JUnit Platform for test discovery and execution.", //
footerHeading = "%n", //
footer = "For more information, please refer to the JUnit User Guide at%n" //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ void displayBanner(String command) {
var consoleLauncher = new ConsoleLauncher(ConsoleTestExecutor::new, printSink, printSink);
consoleLauncher.run(command);

assertThat(stringWriter.toString()).contains(
"Thanks for using JUnit! Support its development at https://junit.org/sponsoring");
assertThat(stringWriter.toString()).contains("Thanks for using JUnit!");
}

@ParameterizedTest(name = "{0}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ void listAllObservableEngines() {
.setTool(new Java()) //
.setProject("standalone") //
.addArguments("-jar", MavenRepo.jar("junit-platform-console-standalone")) //
.addArguments("engines", "--disable-banner").build() //
.addArguments("engines", "--disable-ansi-colors", "--disable-banner").build() //
.run(false);

assertEquals(0, result.getExitCode(), String.join("\n", result.getOutputLines("out")));
Expand Down

0 comments on commit 548fb69

Please sign in to comment.