SuperAPI AI 工具集

gds-test-automate

测试与质量

查看项目

更新于 10-15 20:07

技能介绍

用途:为游戏项目生成自动化测试代码,可基于测试设计场景或通过分析现有游戏代码来创建;针对 Unity、Unreal 或 Godot 生成符合对应引擎模式的测试,含测试夹具与清理。

主要能力:自动检测项目所用引擎;生成单元测试、集成测试(场景/关卡)与冒烟测试(启动、主菜单、新游戏、核心循环、存读档等关键路径);按引擎加载知识片段(Unity/Unreal/Godot 与 E2E 模式);测试文件即时写入磁盘,并生成汇总报告(automation-summary.md)。

必要用法:激活时先解析 workflow 块,可运行 uv run {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --project-root {project-root} --key workflow,失败则按 base→team→user 顺序合并 customize.toml、{project-root}/_bmad/custom/{skill-name}.toml 与 .user.toml;随后执行 prepend 步骤、加载持久事实与 {project-root}/_bmad/gds/config.yaml 配置(user_name、communication_language、output_folder、date),问候用户并执行 append 步骤。测试写入 {test_dir}/unit/、{test_dir}/integration/、{test_dir}/e2e/infrastructure/ 等目录。

限制:前置要求测试框架已初始化、测试场景已定义、游戏代码可访问,否则中止;coverage_target 默认 critical-paths(可选 comprehensive、selective),game_engine 默认 auto;生成测试不应测试引擎功能、不应以硬编码等待作为主要同步、不应依赖执行顺序、不应缺少 teardown 清理。其他细节暂未提供。