Skip to content

Commit

Permalink
test2?
Browse files Browse the repository at this point in the history
  • Loading branch information
whyoleg committed Jan 19, 2025
1 parent 110501c commit 0460493
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions sweetspi-tests/src/test/kotlin/AbstractTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,10 @@ abstract class AbstractTest {

@BeforeEach
fun setupTestInfo(testInfo: TestInfo) {
temporaryDirectory = if (System.getenv("CI") != null) {
Files.createTempDirectory("tests")
} else {
Path("build/test-projects")
.resolve(testInfo.testClass.get().name.substringAfter("dev.whyoleg.sweetspi.tests.").replace(".", "/"))
.resolve(testInfo.testMethod.get().name)
.also(Path::deleteRecursively)
}
temporaryDirectory = Path("build/test-projects")
.resolve(testInfo.testClass.get().name.substringAfter("dev.whyoleg.sweetspi.tests.").replace(".", "/"))
.resolve(testInfo.testMethod.get().name)
.also(Path::deleteRecursively)
}

val projectDirectory: Path get() = temporaryDirectory.resolve("project").createDirectories()
Expand Down

0 comments on commit 0460493

Please sign in to comment.