Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hsz committed Sep 6, 2023
1 parent 6ad8eb1 commit e3c2dfa
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions src/test/kotlin/org/jetbrains/intellij/IntelliJPluginSpec.kt
Original file line number Diff line number Diff line change
Expand Up @@ -511,24 +511,22 @@ class IntelliJPluginSpec : IntelliJPluginSpecBase() {

@Test
fun `expect build fails when using unsupported Gradle version`() {
val unsupportedGradleVersions = setOf(
"6.4",
)

unsupportedGradleVersions.forEach { gradleVersion ->
build(
gradleVersion = gradleVersion,
fail = true,
assertValidConfigurationCache = true,
"help",
).apply {
assertContains("Gradle IntelliJ Plugin requires Gradle", output)
assertContains("FAILURE: Build failed with an exception", output)
}
build(
gradleVersion = "6.4",
fail = true,
assertValidConfigurationCache = true,
"help",
).apply {
assertContains("Gradle IntelliJ Plugin requires Gradle", output)
assertContains("FAILURE: Build failed with an exception", output)
}
}

@Test
@Ignore(
"Fails when building with 8.x and running on 7.x via unit tests: " +
"java.lang.NoSuchMethodError: 'org.gradle.internal.buildoption.Option\$Value org.gradle.api.internal.StartParameterInternal.getIsolatedProjects()'"
)
fun `expect successful build using minimal supported Gradle version`() {
val buildResult = build(
gradleVersion = MINIMAL_SUPPORTED_GRADLE_VERSION,
Expand Down

0 comments on commit e3c2dfa

Please sign in to comment.