testing-skill

Generate pytest unit, integration, workflow, agent, tool, and API endpoint tests.

Updated Mar 12, 2026
One-click install
npx skills add https://github.com/tendercoconut174/ai-agent-platform --skill testing-skill-tendercoconut174
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: testing-skill
Source: https://github.com/tendercoconut174/ai-agent-platform/tree/main/.cursor/skills/testing-skill
Command: npx skills add https://github.com/tendercoconut174/ai-agent-platform --skill testing-skill-tendercoconut174

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Writing consistent, high-quality tests for an AI agent platform is time-consuming and error-prone, especially when tests must stay deterministic and isolated from external services. This Skill standardizes test generation so every test follows the same pytest conventions and mocking rules. ## Core Features & Use Cases - Multiple Test Types: Generates unit tests, integration tests, workflow tests, agent tests, tool tests, and API endpoint tests. - Enforced Testing Standards: Ensures tests verify correctness, isolate dependencies, remain deterministic, and never call real external services. - Consistent Project Layout: Places tests in a tests/ directory mirroring the source structure with test_ naming conventions. - Use Case: When adding a new agent tool, ask for test coverage and receive pytest unit tests for the tool logic plus integration tests for the agent-to-tool interaction, with all external APIs mocked. ## Quick Start Generate pytest unit and integration tests for my new agent tool with all external API calls mocked.

Frequently Asked Questions about testing-skill

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

FAQPage Schema
How do I generate unit tests for agent tools with pytest?▼

Provide the tool or agent node logic and request unit tests. The generated tests isolate the component, mock all dependencies, use the test_ naming prefix, and are placed in a tests/ directory mirroring your source structure.

What testing framework does this skill use for Python tests?▼

The skill uses pytest as the core framework, with optional support for pytest-asyncio for async code, httpx for API endpoint testing, and pytest-mock for mocking dependencies.

Can generated tests call real external APIs?▼

No. All generated tests must be deterministic and never depend on external services. External APIs are always mocked so tests run quickly and produce repeatable results.

What is the difference between integration tests and workflow tests here?▼

Integration tests verify interactions between components such as API to queue or agent to tool, possibly with mocked dependencies. Workflow tests cover full multi-step workflows end-to-end with external services mocked.

Where should generated test files be placed?▼

Tests go in a tests/ directory that mirrors the source code structure. Test files and test functions use the test_ prefix so pytest discovers them automatically.