test: cover automatic profile analysis

Exercise multi-user commits, attribution failures, model retries, deduplication, and eligibility gates with a deterministic fake model. Move the real-model experiment to an opt-in live test task.
This commit is contained in:
2026-08-02 22:18:17 +08:00
parent 9ea14a681a
commit aa67305d80
4 changed files with 276 additions and 34 deletions
+16 -1
View File
@@ -1,3 +1,5 @@
import org.gradle.api.tasks.testing.Test
plugins {
val kotlinVersion = "2.0.20"
kotlin("jvm") version kotlinVersion
@@ -47,5 +49,18 @@ dependencies {
}
tasks.test {
useJUnitPlatform()
useJUnitPlatform {
excludeTags("live")
}
}
tasks.register<Test>("liveProfileTest") {
group = "verification"
description = "Runs the opt-in profile experiment against a configured live model."
testClassesDirs = tasks.test.get().testClassesDirs
classpath = tasks.test.get().classpath
useJUnitPlatform {
includeTags("live")
}
shouldRunAfter(tasks.test)
}