mirror of
https://github.com/jie65535/JChatGPT.git
synced 2026-09-15 02:56:10 +08:00
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:
+16
-1
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user