Skip to content

Commit

Permalink
Fix ConsoleLauncherTests and StandaloneTests
Browse files Browse the repository at this point in the history
(cherry picked from commit 548fb69)
  • Loading branch information
sormuras authored and marcphilipp committed Nov 2, 2023
1 parent c556735 commit fea05c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
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 @@ -67,7 +67,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(), () -> getExitCodeMessage(result));
Expand Down

0 comments on commit fea05c3

Please sign in to comment.