Skip to content

Commit

Permalink
Support Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
dnestoro committed Feb 21, 2025
1 parent 2db52f3 commit 29c75fe
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
import org.junit.platform.launcher.listeners.UniqueIdTrackingListener;
import org.junit.platform.reporting.legacy.xml.LegacyXmlReportGeneratingListener;

import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.UncheckedIOException;
Expand Down Expand Up @@ -218,15 +219,15 @@ private static Path getTestIDsFromDefaultLocations() {
}

private static Path getGradleTestIdsDefaultLocation() {
return Path.of(getBuildDirectory("/build/"))
return Path.of(getBuildDirectory(File.pathSeparator + "build" + File.pathSeparator))
.resolve("test-results")
.resolve("test")
.resolve("testlist")
.toAbsolutePath();
}

private static Path getMavenTestIDsDefaultLocation() {
return Path.of(getBuildDirectory("/target/"))
return Path.of(getBuildDirectory(File.pathSeparator + "target" + File.pathSeparator))
.resolve("test-ids")
.toAbsolutePath();
}
Expand Down

0 comments on commit 29c75fe

Please sign in to comment.