test

Generate pytest test files and execute unit, integration, and end-to-end tests with HTML reporting.

5|1|Updated Apr 7, 2026
One-click install
npx skills add https://github.com/ayanjiushishuai/dev_toolkits --skill test-ayanjiushishuai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test
Source: https://github.com/ayanjiushishuai/dev_toolkits/tree/main/skills/test
Command: npx skills add https://github.com/ayanjiushishuai/dev_toolkits --skill test-ayanjiushishuai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

开发团队在测试活动中常面临测试用例匮乏、执行分散和报告不完整等痛点。本技能提供从用例生成到执行再到结果分析的一站式能力,帮助提升测试覆盖率和交付质量。

Core Features & Use Cases

  • 测试用例生成:从代码结构分析并生成符合 pytest 规范的测试文件。
  • 测试执行:支持本地与远程执行,提供单元、集成和端到端的分层测试能力。
  • HTML 报告与分析:输出可视化测试报告,便于团队审阅并集成到 CI/CD。
  • 测试覆盖策略:按模块、优先级和测试模式配置执行,提升覆盖率与稳定性。

Quick Start

输入要测试的模块名,系统将生成初始测试骨架并执行 pytest,快速产出第一份测试报告。

Frequently Asked Questions about test

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate pytest test cases automatically from my code structure?

To generate pytest test cases, provide your module name so the system can analyze code structure and produce initial test skeletons. This outputs ready-to-run pytest files with strict assertions and an initial HTML test report.

What is the best way to set up a layered testing strategy for unit and integration tests?

A layered testing strategy organizes unit, integration, and end-to-end testing scenarios by module and priority. You configure execution modes and fixtures to isolate layers, yielding improved test coverage and execution stability.

Does pytest reporting support HTML output for CI/CD integration?

Yes, pytest reporting supports HTML output designed for CI/CD integration. The generated visual HTML test reports allow teams to review test results, analyze failures, and embed reporting directly into continuous delivery pipelines.

Can I execute tests remotely instead of running pytest locally?

Yes, you can execute tests remotely instead of running pytest locally. The system supports optional remote and local execution configurations, allowing you to trigger suites across distributed environments while collecting unified result reports.

How do I manage test data and fixtures for end-to-end testing scenarios?

You manage test data and fixtures by applying the system's built-in guidance on fixture design and data configuration for end-to-end testing scenarios. This ensures strict assertion design and proper state isolation across complex testing layers.