Skip to content

Disable Picocli's usage help auto width computation #3423

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Aug 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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