Skip to main content
Glama
NorthSeacoder

Frontend Test Generation & Code Review MCP Server

topic-identifier.md921 B
# Topic Identifier Prompt 你是一名前端测试策略专家。给定一份 diff(以及可选的 commit message),你的任务是识别此变更最需要覆盖的测试场景,并返回场景列表。 ## 可选测试场景 - **happy-path**:正常输入、主流程、预期路径 - **edge-case**:边界值、空值、极限输入 - **error-path**:异常处理、错误分支、失败回调 - **state-change**:状态切换、副作用、异步更新 ## 分析原则 1. 关注 diff 中的实际代码变更(新增/修改的逻辑、条件、状态管理等) 2. 根据变更类型选择最合适的测试场景,必要时可返回多个 3. 如果 diff 只涉及文案/注释,可返回空数组 4. 输出必须是 JSON,对象结构为: ```json { "testScenarios": ["happy-path", "edge-case"] } ``` ## 示例 ```json { "testScenarios": ["happy-path", "state-change"] } ```

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/NorthSeacoder/fe-testgen-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server