Skip to content

Commit

Permalink
Fix verifyPlugin task
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexPl292 committed Feb 9, 2024
1 parent 5c79b88 commit a2d34a8
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 20 deletions.
10 changes: 8 additions & 2 deletions tests/java-tests/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,14 @@ dependencies {
testImplementation(testFixtures(project(":"))) // The root project
}

tasks.test {
useJUnitPlatform()
tasks {
test {
useJUnitPlatform()
}

verifyPlugin {
enabled = false
}
}

intellij {
Expand Down
24 changes: 15 additions & 9 deletions tests/long-running-tests/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,22 @@ dependencies {
testImplementation(testFixtures(project(":"))) // The root project
}

// This task is disabled because it should be excluded from `gradle test` run (because it's slow)
// I didn't find a better way to exclude except disabling and defining a new task with a different name
tasks.test {
enabled = false
useJUnitPlatform()
}
tasks {
// This task is disabled because it should be excluded from `gradle test` run (because it's slow)
// I didn't find a better way to exclude except disabling and defining a new task with a different name
test {
enabled = false
useJUnitPlatform()
}

tasks.register<Test>("testLongRunning") {
group = "verification"
useJUnitPlatform()
register<Test>("testLongRunning") {
group = "verification"
useJUnitPlatform()
}

verifyPlugin {
enabled = false
}
}

intellij {
Expand Down
24 changes: 15 additions & 9 deletions tests/property-tests/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,22 @@ dependencies {
testImplementation(testFixtures(project(":"))) // The root project
}

// This task is disabled because it should be excluded from `gradle test` run (because it's slow)
// I didn't find a better way to exclude except disabling and defining a new task with a different name
tasks.test {
useJUnitPlatform()
enabled = false
}
tasks {
// This task is disabled because it should be excluded from `gradle test` run (because it's slow)
// I didn't find a better way to exclude except disabling and defining a new task with a different name
test {
useJUnitPlatform()
enabled = false
}

tasks.register<Test>("testPropertyBased") {
group = "verification"
useJUnitPlatform()
register<Test>("testPropertyBased") {
group = "verification"
useJUnitPlatform()
}

verifyPlugin {
enabled = false
}
}

intellij {
Expand Down
4 changes: 4 additions & 0 deletions tests/ui-fixtures/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ tasks {
systemProperty("jb.consents.confirmation.enabled", "false")
systemProperty("ide.show.tips.on.startup.default.value", "false")
}

verifyPlugin {
enabled = false
}
}

intellij {
Expand Down
4 changes: 4 additions & 0 deletions tests/ui-ij-tests/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ tasks {
systemProperty("jb.consents.confirmation.enabled", "false")
systemProperty("ide.show.tips.on.startup.default.value", "false")
}

verifyPlugin {
enabled = false
}
}

intellij {
Expand Down
4 changes: 4 additions & 0 deletions tests/ui-py-tests/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ tasks {
systemProperty("ide.show.tips.on.startup.default.value", "false")
systemProperty("eap.require.license", "false")
}

verifyPlugin {
enabled = false
}
}

intellij {
Expand Down

0 comments on commit a2d34a8

Please sign in to comment.