api-test-generator

Generate pytest test scenarios and callback servers from API documentation.

Updated Apr 15, 2026
One-click install
npx skills add https://github.com/enrico-j-yang/api-test-generator --skill api-test-generator-enrico-j-yang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-test-generator
Source: https://github.com/enrico-j-yang/api-test-generator/tree/main
Command: npx skills add https://github.com/enrico-j-yang/api-test-generator --skill api-test-generator-enrico-j-yang

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pytest, requests, python-dotenv, pytest-html, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

The skill addresses the issue of manual API testing by providing an automated solution for generating test scenarios and documentation directly from API documentation.

Core Features & Use Cases

  • Test Scenario Generation: Automatically generate test scenarios for Swagger, OpenAPI, or markdown API specifications.
  • Executable Pytest Scripts: Outputs ready-to-run pytest scripts with fixtures and assertions.
  • HTTPS Callback Server: Creates a server for webhook testing with SSL certificate generation.
  • README Documentation: Generates complete usage instructions and troubleshooting information.

Quick Start

Add this skill using npx skills add enrico-j-yang/api-test-generator or clone the repository to your agent's skills directory and invoke as /api-test-generator:api-test-generator.

Frequently Asked Questions about api-test-generator

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

FAQPage Schema
How do I generate pytest scripts from OpenAPI or Swagger documentation?

You can generate pytest scripts from OpenAPI or Swagger by using an automated generator that parses API documentation and outputs ready-to-run test files with fixtures and assertions. This eliminates manual test scaffolding.

What is the best way to automate API testing from markdown specifications?

Automating API testing from markdown specifications involves parsing text to identify endpoints and expected responses, then generating executable pytest scripts. This approach ensures tests stay synchronized with documentation.

Do I need to manually configure an HTTPS server for webhook API testing?

No, you do not need to manually configure an HTTPS server for webhook testing. The generation process automatically creates an HTTPS callback server complete with SSL certificate generation for immediate use.

Can I use pytest and requests to test APIs defined in OpenAPI specifications?

Yes, you can use pytest and requests to test APIs defined in OpenAPI specifications. Generated test scripts utilize these libraries to execute HTTP requests and validate responses against defined assertions.

How do I document generated API test scenarios for my team?

You document generated API test scenarios by producing a comprehensive README file alongside tests. This documentation includes complete usage instructions and troubleshooting information for team reference.