Skip to content

Commit 8811c23

Browse files
committed
create a new dir for each test project
1 parent a899a85 commit 8811c23

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/test/kotlin/org/jetbrains/intellij/IntelliJPluginSpecBase.kt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,17 @@ abstract class IntelliJPluginSpecBase {
3636
?: throw GradleException("'test.intellij.version' isn't provided")
3737
val testMarkdownPluginVersion = System.getProperty("test.markdownPlugin.version").takeUnless { it.isNullOrEmpty() }
3838
?: throw GradleException("'test.markdownPlugin.version' isn't provided")
39-
val dir: File by lazy { createTempDirectory("tmp").toFile() }
39+
var dir: File = createTempDirectory("tmp").toFile()
4040

41-
val gradleProperties = file("gradle.properties")
42-
val buildFile = file("build.gradle")
43-
val pluginXml = file("src/main/resources/META-INF/plugin.xml")
44-
val buildDirectory = File(dir, "build")
41+
val gradleProperties get() = file("gradle.properties")
42+
val buildFile get() = file("build.gradle")
43+
val pluginXml get() = file("src/main/resources/META-INF/plugin.xml")
44+
val buildDirectory get() = File(dir, "build")
4545

4646
@BeforeTest
4747
open fun setUp() {
48+
dir = createTempDirectory("tmp").toFile()
49+
4850
file("settings.gradle").groovy("rootProject.name = 'projectName'")
4951

5052
buildFile.groovy(

0 commit comments

Comments
 (0)