Fix running hibernate tests from intellij
MODIFY
instrumentation/hibernate/hibernate-4.0/javaagent/build.gradle.kts
instrumentation/hibernate/hibernate-4.0/javaagent/build.gradle.kts
@@ -26,9 +26,18 @@ testSets {
}
tasks {
+ val version5Test by existing(Test::class)
+ val version6Test by existing(Test::class) {
+ filter {
+ // version6 doesn't have all the tests that older versions have
+ // this here prevents failure when running a test that is missing from version6 from ide
+ isFailOnNoMatchingTests = false
+ }
+ }
+
test {
- dependsOn("version5Test")
- dependsOn("version6Test")
+ dependsOn(version5Test)
+ dependsOn(version6Test)
}
}

Fix running hibernate tests from intellij (#4498)