1
0
mirror of https://github.com/chylex/IntelliJ-IdeaVim.git synced 2025-08-04 15:59:04 +02:00

Remove the testWithNeovim task

Now you can just run `gradlew test -Dnvim`
This commit is contained in:
Alex Plate 2024-02-08 14:53:43 +02:00
parent ae62a9f378
commit cc838f614f
No known key found for this signature in database
GPG Key ID: 0B97153C8FFEC09F
3 changed files with 5 additions and 10 deletions
.teamcity/_Self/buildTypes
build.gradle.kts
src/testFixtures/kotlin/org/jetbrains/plugins/ideavim

View File

@ -39,7 +39,7 @@ object Nvim : IdeaVimBuildType({
""".trimIndent()
}
gradle {
tasks = "clean testWithNeovim"
tasks = "clean test -Dnvim"
buildFile = ""
enableStacktrace = true
}

View File

@ -157,14 +157,6 @@ configurations {
}
}
// --- Compilation
// This can be moved to other test registration when issue with tests in gradle will be fixed
tasks.register<Test>("testWithNeovim") {
group = "verification"
systemProperty("ideavim.nvim.test", "true")
useJUnitPlatform()
}
tasks {
test {
// Set teamcity env variable locally to run additional tests for leaks.
@ -174,6 +166,8 @@ tasks {
println("Set env TEAMCITY_VERSION to X to enable project leak checks from the platform")
environment("TEAMCITY_VERSION" to "X")
}
systemProperty("ideavim.nvim.test", System.getProperty("nvim") ?: false)
}
compileJava {

View File

@ -88,7 +88,8 @@ object NeovimTesting {
val noBehaviourDiffers = !method.isAnnotationPresent(VimBehaviorDiffers::class.java)
val noTestingWithoutNeovim = !method.isAnnotationPresent(TestWithoutNeovim::class.java) &&
!test.javaClass.isAnnotationPresent(TestWithoutNeovim::class.java)
val neovimTestingEnabled = System.getProperty("ideavim.nvim.test", "false")!!.toBoolean()
val property = System.getProperty("ideavim.nvim.test", "false")
val neovimTestingEnabled = if (property.isBlank()) true else property.toBoolean()
val notParserTest = "org.jetbrains.plugins.ideavim.ex.parser" !in test.javaClass.packageName
val notScriptImplementation = "org.jetbrains.plugins.ideavim.ex.implementation" !in test.javaClass.packageName
val notExtension = "org.jetbrains.plugins.ideavim.extension" !in test.javaClass.packageName