跳转到主要内容
此内容尚未提供您的语言版本,正在以英文显示。

API Test Suite Builder

技能 已验证 活跃

Use when the user asks to generate API tests, create integration test suites, test REST endpoints, or build contract tests.

目的

Use when the user asks to generate API tests, create integration test suites, test REST endpoints, or build contract tests.

功能

  • Scan API routes across frameworks
  • Auto-generate auth and input validation tests
  • Create test suites for Vitest+Supertest (Node) or Pytest+httpx (Python)
  • Cover edge cases like pagination, file uploads, and rate limiting

使用场景

  • Generate test scaffolds for new APIs
  • Create baseline test coverage for legacy APIs
  • Verify existing tests against route definitions
  • Prepare for API security audits

非目标

  • Executing tests directly
  • Managing test environments
  • Generating tests for non-API code

工作流

  1. Scan codebase for API route definitions
  2. Extract HTTP methods, paths, and auth requirements
  3. Apply test generation patterns for auth, input validation, etc.
  4. Generate test files for specified framework (Vitest/Pytest)
  5. Provide code snippets and explanations for manual integration

实践

  • API Testing
  • Test Automation
  • Code Quality

安装

请先添加 Marketplace

/plugin marketplace add alirezarezvani/claude-skills
/plugin install engineering@claude-code-skills

质量评分

已验证
99 /100
1 day ago 分析

信任信号

最近提交1 day ago
星标14.6k
许可证MIT
状态
查看源代码

类似扩展

DBHub 测试技能

98

为 DBHub 运行和排查测试,包括单元测试、使用 Testcontainers 的集成测试以及特定于数据库的测试。在被要求运行测试、修复测试失败、调试集成测试、排查 Docker/数据库容器问题或添加新测试时使用。在验证代码更改是否正常工作或需要调查 CI 测试失败时也使用。

技能
bytebase

Vue Testing Best Practices

100

Use for Vue.js testing. Covers Vitest, Vue Test Utils, component testing, mocking, testing patterns, and Playwright for E2E testing.

技能
hyf0

Test Cli Application

99

Write integration tests for a Node.js CLI application using the built-in node:test module. Covers the exec helper pattern, output assertions, filesystem state verification, cleanup hooks, JSON output parsing, error case testing, and state restoration after destructive tests. Use when adding tests to an existing CLI, testing a new command, verifying adapter behavior across frameworks, or setting up CI for a CLI tool.

技能
pjt222

Python Testing Strategies

99

Testing patterns for FastAPI with pytest-asyncio, httpx AsyncClient, fixtures, and test data factories. Use when writing tests, setting up test infrastructure, or improving coverage in a FastAPI project.

技能
spartan-stratos

Python Tests with Pytest

98

使用 pytest 编写和评估有效的 Python 测试。适用于编写测试、审查测试代码、调试测试失败或改进测试覆盖率时。涵盖测试设计、夹具、参数化、模拟和异步测试。

技能
jlowin

Pytest

98

pytest - Python's most powerful testing framework with fixtures, parametrization, plugins, and framework integration for FastAPI, Django, Flask

技能
bobmatnyc