chore(git): update .gitignore to exclude keys, build outputs, logs
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
package com.example.gameofmoon
|
||||
|
||||
import android.content.Context
|
||||
import com.example.gameofmoon.story.engine.*
|
||||
import kotlinx.coroutines.*
|
||||
|
||||
/**
|
||||
* 测试运行器 - 验证DSL引擎完整性
|
||||
*/
|
||||
class EngineValidationTest {
|
||||
|
||||
companion object {
|
||||
@JvmStatic
|
||||
fun runFullValidation(context: Context) {
|
||||
runBlocking {
|
||||
println("🧪 开始完整的DSL引擎验证...")
|
||||
|
||||
val validator = StoryEngineValidator(context)
|
||||
val result = validator.runFullValidation()
|
||||
|
||||
println("≡ 验证结果:")
|
||||
println("总测试:${result.totalTests}")
|
||||
println("通过:${result.passedTests}")
|
||||
println("失败:${result.failedTests}")
|
||||
println("得分:${result.overallScore}%")
|
||||
|
||||
if (result.overallScore >= 80) {
|
||||
println("* 引擎验证通过!")
|
||||
} else {
|
||||
println("! 引擎需要改进")
|
||||
result.results.filter { !it.passed }.forEach {
|
||||
println("× ${it.testName}: ${it.message}")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user