From 1d51dffd768340e00893585f8b62aba300a9ea56 Mon Sep 17 00:00:00 2001 From: Nikolay Krasko Date: Wed, 18 Nov 2020 13:21:52 +0300 Subject: [PATCH] Reminder about -Pidea.fir.plugin=true for running fir-idea tests --- idea/idea-fir-performance-tests/build.gradle.kts | 11 +++++++---- idea/idea-fir/build.gradle.kts | 11 +++++++---- idea/idea-frontend-fir/build.gradle.kts | 11 +++++++---- .../idea-fir-low-level-api/build.gradle.kts | 11 +++++++---- 4 files changed, 28 insertions(+), 16 deletions(-) diff --git a/idea/idea-fir-performance-tests/build.gradle.kts b/idea/idea-fir-performance-tests/build.gradle.kts index 5e390461d87..76ba999be43 100644 --- a/idea/idea-fir-performance-tests/build.gradle.kts +++ b/idea/idea-fir-performance-tests/build.gradle.kts @@ -37,10 +37,13 @@ sourceSets { "test" { projectDefault() } } -if (kotlinBuildProperties.useFirIdeaPlugin) { - projectTest(parallel = true) { - dependsOn(":dist") - workingDir = rootDir +projectTest(parallel = true) { + dependsOn(":dist") + workingDir = rootDir + doFirst { + if (!kotlinBuildProperties.useFirIdeaPlugin) { + error("Test task in the module should be executed with -Pidea.fir.plugin=true") + } } } diff --git a/idea/idea-fir/build.gradle.kts b/idea/idea-fir/build.gradle.kts index e90d560910b..71c7e9e39f2 100644 --- a/idea/idea-fir/build.gradle.kts +++ b/idea/idea-fir/build.gradle.kts @@ -34,10 +34,13 @@ sourceSets { "test" { projectDefault() } } -if (kotlinBuildProperties.useFirIdeaPlugin) { - projectTest(parallel = true) { - dependsOn(":dist") - workingDir = rootDir +projectTest(parallel = true) { + dependsOn(":dist") + workingDir = rootDir + doFirst { + if (!kotlinBuildProperties.useFirIdeaPlugin) { + error("Test task in the module should be executed with -Pidea.fir.plugin=true") + } } } diff --git a/idea/idea-frontend-fir/build.gradle.kts b/idea/idea-frontend-fir/build.gradle.kts index fc1a1dbdfe5..1f29a646041 100644 --- a/idea/idea-frontend-fir/build.gradle.kts +++ b/idea/idea-frontend-fir/build.gradle.kts @@ -41,10 +41,13 @@ sourceSets { "test" { projectDefault() } } -if (kotlinBuildProperties.useFirIdeaPlugin) { - projectTest { - dependsOn(":dist") - workingDir = rootDir +projectTest { + dependsOn(":dist") + workingDir = rootDir + doFirst { + if (!kotlinBuildProperties.useFirIdeaPlugin) { + error("Test task in the module should be executed with -Pidea.fir.plugin=true") + } } } diff --git a/idea/idea-frontend-fir/idea-fir-low-level-api/build.gradle.kts b/idea/idea-frontend-fir/idea-fir-low-level-api/build.gradle.kts index 1afaef59769..33d9bcee2f3 100644 --- a/idea/idea-frontend-fir/idea-fir-low-level-api/build.gradle.kts +++ b/idea/idea-frontend-fir/idea-fir-low-level-api/build.gradle.kts @@ -44,10 +44,13 @@ sourceSets { "test" { projectDefault() } } -if (kotlinBuildProperties.useFirIdeaPlugin) { - projectTest { - dependsOn(":dist") - workingDir = rootDir +projectTest { + dependsOn(":dist") + workingDir = rootDir + doFirst { + if (!kotlinBuildProperties.useFirIdeaPlugin) { + error("Test task in the module should be executed with -Pidea.fir.plugin=true") + } } }