首页/ AI 技能 / @skilllib/skill-2117939930272412778
Skill站外收录 @skilllib/skill-2117939930272412778

windsurf-test-generation

根据代码结构与功能逻辑自动生成覆盖单元测试、集成测试及组件测试的完整用例集,支持主流测试框架下的断言构造、边界场景分析与模拟数据生成,适用于开发周期中的自动化测试构建与质量保障。

0.0 (0) 27 次安装 原作者 编程导航
收录于 2026-01-22

Skills.MD

# Windsurf Test Generation ## Overview This skill enables AI-powered test generation for any codebase using Windsurf's Cascade. It analyzes function signatures, identifies edge cases, creates meaningful assertions, and generates mock data. Supports unit tests, integration tests, and component tests across multiple frameworks including Jest, Vitest, Mocha, pytest, and testing-library. ## Prerequisites - Windsurf IDE with Cascade enabled - Testing framework installed (Jest, Vitest, pytest, etc.) - Project with testable code (functions, classes, components) - Code coverage tool configured (optional but recommended) - Understanding of testing patterns and best practices ## Instructions 1. **Configure Testing Framework** 2. **Select Target Code** 3. **Generate Tests with Cascade** 4. **Add Custom Scenarios** 5. **Integrate into Workflow** See `{baseDir}/references/implementation.md` for detailed implementation guide. ## Output - Test files with comprehensive coverage - Mock data and fixture files - Coverage report with metrics - Test pattern documentation for team ## Error Handling See `{baseDir}/references/errors.md` for comprehensive error handling. ## Examples See `{baseDir}/references/examples.md` for detailed examples. ## Resources - [Windsurf Test Generation Guide](https://docs.windsurf.ai/features/test-generation) - [Jest Documentation](https://jestjs.io/docs/getting-started) - [Testing Library Best Practices](https://testing-library.com/docs/guiding-principles)

评论 0

还没有评论,来抢沙发。