Skip to content

Commit

Permalink
Fix passing of redirectTestOutputToFile property in OsgiSurefireBooter
Browse files Browse the repository at this point in the history
  • Loading branch information
jstroleny authored and laeubi committed May 18, 2023
1 parent 765d33e commit 0990f90
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,6 @@ public class OsgiSurefireBooter {
private static final String JUNIT_PLATFORM_PROVIDER = "org.apache.maven.surefire.junitplatform.JUnitPlatformProvider";

public static int run(String[] args, Properties testProps) throws Exception {
// TODO eventually make use of parameter redirectTestOutputToFile
@SuppressWarnings("unused")
boolean redirectTestOutputToFile = Boolean
.parseBoolean(testProps.getProperty("redirectTestOutputToFile", "false"));
String testPlugin = testProps.getProperty("testpluginname");
Expand Down Expand Up @@ -130,7 +128,7 @@ public static int run(String[] args, Properties testProps) throws Exception {
extractProviderProperties(testProps), null, false, Collections.emptyList(), skipAfterFailureCount,
Shutdown.DEFAULT, 30);
StartupReportConfiguration startupReportConfig = new StartupReportConfiguration(useFile, printSummary,
ConsoleReporter.PLAIN, false, reportsDir, trimStackTrace, null, new File(reportsDir, "TESTHASH"), false,
ConsoleReporter.PLAIN, redirectTestOutputToFile, reportsDir, trimStackTrace, null, new File(reportsDir, "TESTHASH"), false,
rerunFailingTestsCount, XSD, StandardCharsets.UTF_8.toString(), false,
getSurefireStatelessReporter(provider, disableXmlReport, null),
getSurefireConsoleOutputReporter(provider), getSurefireStatelessTestsetInfoReporter(provider));
Expand Down

0 comments on commit 0990f90

Please sign in to comment.