SuperAPI AI 工具集

mastra-smoke-test

测试与质量

查看项目

更新于 10-16 00:06

技能介绍

用途:对 Mastra 项目执行发布级冒烟测试,可在本地、staging 或 production 环境验证 Studio UI、agents、tools、workflows、traces、scorers、memory、MCP、errors、experiments、Studio Deploy、Server Deploy 等模块。\n\n主要能力:提供强制测试清单(Setup 常跑,其余按 --test 或 full 触发);支持按指定测试部分执行;本地发布冒烟默认同时做 API/curl 检查与 Studio 浏览器检查(除非 --skip-browser);支持多环境配置文件:本地用 pnpm dev 起 localhost:4111,staging 用 .mastra-project-staging.json 部署到 staging.mastra.cloud,production 用 .mastra-project.json 部署到 mastra.cloud;提供发布范围发现、alpha/stable 发布分支、存储迁移等参考文件。\n\n使用方式:命令行如 smoke test --env local --existing-project ~/my-app、smoke test --env staging -d ~/projects -n test-app;部分测试如 --test agents 或 --test studio,server,traces。参数包括必填 --env,以及 --directory/--name 或 --existing-project(二选一必填)、--tag、--pm、--llm、--db、--test、--browser-agent、--skip-browser、--byok。\n\n限制:需要 Node.js 与包管理器、LLM API key;本地需启用浏览器工具;云环境需 Mastra 平台账号;full staging/production 会跳过 experiments(该测试需 --env local);browser 检查可能遇到 networkidle 超时。报告需汇总各测试 PASS/FAIL、问题、警告与跳过原因。具体价格、配额等暂未提供。