Collect-UI 测试用例生成指南

Community

Automate and validate UI JSON test cases.

Authorcollect-ui
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Collect-UI 在测试场景中经常需要大量符合严格 JSON 规范的测试用例。本技能提供一个系统化的指南和流程,帮助团队快速生成、验证并修复 JSON 测试用例,减少格式错误和结构偏差。

Core Features & Use Cases

  • 标准化流程:提供生成测试用例的步骤、检查清单和错误场景的系统化处理。
  • 结构正确性保障:强调键名必须带引号、children 必须是数组、变量引用要符合规范等要点。
  • 验证与示例:包含示例模板、常见错误速查表以及通过 jsonlint 的自动校验流程,适用于 demo、test 数据等场景。
  • Use Case: QA 或自动化工程师在为 collect-ui 组件编写测试用例时,能够快速创建并验证 JSON 配置,确保上线前的稳定性。

Quick Start

  1. 阅读并遵守指南中的规则,创建新的测试用例 JSON 文件在 demo/data/test/ 目录下; 2) 使用 jsonlint 进行格式验证,例如 npx jsonlint your-file.json; 3) 在应用中注册并加载测试用例,确保路由和数据绑定无误。

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: Collect-UI 测试用例生成指南
Download link: https://github.com/collect-ui/collect-ui/archive/main.zip#collect-ui

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.