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:
parent
ae62a9f378
commit
cc838f614f
2
.teamcity/_Self/buildTypes/Nvim.kt
vendored
2
.teamcity/_Self/buildTypes/Nvim.kt
vendored
@ -39,7 +39,7 @@ object Nvim : IdeaVimBuildType({
|
||||
""".trimIndent()
|
||||
}
|
||||
gradle {
|
||||
tasks = "clean testWithNeovim"
|
||||
tasks = "clean test -Dnvim"
|
||||
buildFile = ""
|
||||
enableStacktrace = true
|
||||
}
|
||||
|
@ -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 {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user