用途:作为 conductor gates 的测试运行检查点,自动检测项目所用测试框架、执行测试并记录结果,供后续流程判断通过或失败。
主要能力:根据项目文件识别框架,包括 package.json 中的 test 脚本(优先 npm test -- --run,回退 npm test)、pytest.ini 或 conftest.py(pytest --tb=short)、Cargo.toml(cargo test)、go.mod(go test ./...)、含 test 目标的 Makefile(make test)。运行测试时默认 300 秒超时,并将输出写入 /tmp/test-output.txt,同时保留退出码。最后生成 .checkpoints/test-runner.json,包含 checkpoint、timestamp、passed、framework、command、exit_code、stats(total/passed/failed)、failed_tests 和 summary 等字段。
判定标准:退出码为 0 且无失败测试即通过;任一测试失败、测试报错或超时(默认 300 秒)即失败;未发现测试时以 framework 为 none 视为通过。
可选用法:需要复杂解析时可使用框架的 JSON 输出,如 Jest 用 npx jest --json --outputFile=/tmp/results.json,Pytest 用 pytest --json-report(需插件),Go 用 go test -json ./...。
限制:资料未提供安装方式、收费、平台支持范围及具体集成细节,暂未提供。