Skip to content

Commit

Permalink
Persist the TestKit working directory for performance.
Browse files Browse the repository at this point in the history
  • Loading branch information
baron1405 committed Dec 23, 2024
1 parent d46915e commit 4d09941
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ run
.gradle
generated-src
*.hprof
testkit
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ tasks {
withType<Test> {
useJUnitPlatform()

systemProperty("projectDir", projectDir)
systemProperty("buildDir", layout.buildDirectory.get().asFile)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@

public class PluginIntegTest {
private static final Path BASE_DIR = Path.of(System.getProperty("buildDir"), "integTest");
private static final Path WORKING_DIR;
private static final Path WORKING_DIR = Path.of(System.getProperty("projectDir"), "testkit");

static {
try {
Files.createDirectories(BASE_DIR);
WORKING_DIR = Files.createTempDirectory(BASE_DIR, "working");
Files.createDirectories(WORKING_DIR);
} catch (final IOException ex) {
throw new RuntimeException(ex);
}
Expand Down

0 comments on commit 4d09941

Please sign in to comment.