claude

test-generator

专业的单元测试生成工具,支持多种编程语言和测试框架,能够智能分析代码并生成高质量的测试用例

0 on GitHubby huangshanv0.0.1MITupdated 6 months agotesting
/

Plugin test-generator from marketplace ithinku-plugins in Protagonistss/ithinku-plugins. Commands read from the repo's manifest — 1 month ago.

What it installs

Skills (3)

  • assertion-helper

    分析函数逻辑并生成合适的断言。 当用户说"生成断言"、"写断言"、"expect语句"、"assert断言"、"验证返回值"、"测试验证"、"断言代码"时使用此技能。 支持多框架断言生成:Jest (expect)、Vitest (expect)、Python (assert/pytest)。 生成类型断言、边界值验证、深度对象比较、Mock调用验证、副作用验证、异步断言。输出精确、可维护的断言代码。

  • mock-generation

    生成测试所需的 Mock 数据与 Stub 函数。 当用户说"生成mock"、"创建mock"、"模拟数据"、"mock函数"、"stub函数"、"测试数据"、"模拟API"、"mock数据库"时使用此技能。 支持多框架 Mock:Jest (jest.fn/mock)、Vitest (vi.fn/vi.mock)、Python (unittest.mock/pytest-mock)。 生成 Mock 模块、Stub 函数、测试数据工厂、API 响应 Mock、数据库 Mock、时间 Mock。输出完整的 Mock 配置代码。

  • test-generation

    分析源代码并生成对应的单元测试用例。 当用户说"生成测试"、"写单元测试"、"添加测试用例"、"测试覆盖"、"单元测试"、"vitest测试"、"jest测试"、"pytest测试"、"测试代码"时使用此技能。 支持多种语言和框架:JavaScript/TypeScript (Jest, Vitest, Mocha)、Python (pytest, unittest)、Java (JUnit 5, TestNG)。 自动生成:正常流程测试、边界条件测试、异常情况测试、Mock 配置。输出遵循 AAA 模式的高质量测试代码。

Slash commands (3)

  • /test-generator:coverage

    分析测试覆盖率,识别未覆盖的代码路径,并生成补充测试用例。

  • /test-generator:mock

    专门用于生成测试所需的Mock数据和Stub函数,帮助隔离测试环境。

  • /test-generator:test

    为指定的文件、函数或类生成单元测试用例。

Subagents (1)

  • test-expert

    执行软件测试相关任务,包括测试设计、策略制定、用例生成和最佳实践指导。当用户需要编写测试计划、生成自动化测试代码或咨询测试方法论时使用此代理。

View source on GitHub

More from Protagonistss/ithinku-plugins

All 8 plugins →

专业的代码审查插件,提供全面的代码质量分析、安全检查和性能优化建议

3 skills · 3 commands · 2 agents

0

git-tools

claude

智能Git工具集,提供自动化提交、分支管理和Git工作流优化

5 skills · 1 command · 1 agent

0

ui-design

claude

拒绝平庸。专注于生成具有独特审美、Bold Direction 和生产级质量的前端界面

2 skills

0

vue-coder

claude

专业的Vue代码生成工具,提供Vue2/3双版本支持,包含组件生成、代码优化和最佳实践建议

2 skills

0

多语言与跨平台项目代码清理插件,智能识别未引用模块、死代码与历史备份并生成安全候选方案

1 skill

0

在完全保留所有功能的前提下,对代码进行简化与优化,提升清晰度、一致性和可维护性

1 agent

0

Similar plugins

Collection of example skills demonstrating various capabilities including skill creation, MCP building, visual design, algorithmic art, internal communications, web testing, artifact building, Slack GIFs, and theme styling

19 skills

anthropics/skills 193,780

Comprehensive PR review agents specializing in comments, tests, error handling, type design, code quality, and code simplification

1 command · 6 agents

anthropics/claude-code 155,476

storybook

claudecodex

Build, preview, and test UI components with Storybook.

7 skills

storybookjs/storybook 91,552

Agentic QE (external: maintained in proffesor-for-testing/agentic-qe, pinned to v3.15.17): a quality-engineering fleet with 11 QE agents, 9 skills, 9 commands, the agentic-qe MCP server pinned to the plugin version, and the aqe-mod guard that refuses destructive operations on AQE learning data

9 skills · 9 commands · 11 agents · 1 MCP server

ruvnet/ruflo 81,589

Automates browser interactions for web testing, form filling, screenshots, and data extraction

12 skills

vercel-labs/agent-browser 50,373

Maintain test-generator?

This page updates itself from your repo. Add the badge to your README, or get it Featured to pin it above the organic results with a followed link to your site.

claude & codex plugins8 plugins