Skip to content

Commit

Permalink
Update listener's package and type name
Browse files Browse the repository at this point in the history
Will be stable when JUnit Platform 1.4.0-M1 is released.

Related issue #70
  • Loading branch information
sormuras committed Nov 25, 2018
1 parent b3c48ca commit 91e7af6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import org.junit.platform.launcher.core.LauncherDiscoveryRequestBuilder;
import org.junit.platform.launcher.core.LauncherFactory;
import org.junit.platform.launcher.listeners.SummaryGeneratingListener;
import org.junit.platform.reporting.xml.XmlReportsWritingListener;
import org.junit.platform.reporting.legacy.xml.LegacyXmlReportGeneratingListener;

public class TesterRunner implements IntSupplier {
private final ClassLoader classLoader;
Expand Down Expand Up @@ -66,7 +66,7 @@ private static int launchJUnitPlatform(TestConf testConf) {
var launcher = LauncherFactory.create();
var launcherDiscoveryRequest = builder.build();
var summaryGeneratingListener = new SummaryGeneratingListener();
var xmlReportsWritingListener = new XmlReportsWritingListener(testConf.reportPath().resolve(moduleName), new PrintWriter(System.out));
var xmlReportsWritingListener = new LegacyXmlReportGeneratingListener(testConf.reportPath().resolve(moduleName), new PrintWriter(System.out));
launcher.registerTestExecutionListeners(summaryGeneratingListener);
launcher.registerTestExecutionListeners(xmlReportsWritingListener);
var startTimeMillis = System.currentTimeMillis();
Expand Down

0 comments on commit 91e7af6

Please sign in to comment.