33 lines
1.0 KiB
YAML
33 lines
1.0 KiB
YAML
# YX ASR 测试配置文件
|
|
|
|
# 测试覆盖率目标
|
|
coverage:
|
|
target: 85 # 目标覆盖率百分比
|
|
exclude:
|
|
- "**/*.g.dart" # 排除生成的文件
|
|
- "**/test/**" # 排除测试文件本身
|
|
|
|
# 性能测试阈值
|
|
performance:
|
|
initialization_max_ms: 5000 # 初始化最大时间
|
|
start_stop_max_ms: 100 # 启动停止最大时间
|
|
serialization_max_us: 1000 # 序列化最大时间(微秒)
|
|
memory_leak_iterations: 100 # 内存泄漏测试迭代次数
|
|
|
|
# 测试环境配置
|
|
environment:
|
|
mock_permissions: true # 使用模拟权限
|
|
mock_models: true # 使用模拟模型
|
|
timeout_seconds: 30 # 测试超时时间
|
|
|
|
# 集成测试配置
|
|
integration:
|
|
test_app_timeout: 10 # 测试应用超时时间
|
|
recording_duration_ms: 2000 # 模拟录音时长
|
|
|
|
# 报告配置
|
|
reporting:
|
|
generate_html: true # 生成 HTML 报告
|
|
output_directory: "coverage" # 输出目录
|
|
include_performance: true # 包含性能报告
|