Test Generation featuring AI
Swagger Contract Testing Test Generation is an AI-powered tool that rapidly creates Pact tests from source code, OpenAPI descriptions, or traffic capture data. This accelerates contract test creation and maintenance.

AI with Copilot, using MCP integration. Watch the full video: AI | MCP Server.
Features
AI offers a suite of features designed to improve the efficiency and quality of your contract tests:
Generating Pact tests using various OpenAPI descriptions, code, or request-response pairs combinations.
Customizable prompts and test templates to tailor output to your specific needs.
Seamless integration with Contract Testing's Role-based Access Controls (RBAC) feature that allows you to enforce and manage organizational policies.
Code review (beta), allowing you to evaluate the quality of existing Pact tests and suggest best-practice improvements.
AI is available as a CLI or MCP server, and supports the following programming languages:
Java and Kotlin
JavaScript / TypeScript
Golang
.NET
PHP
Swift
Python (coming soon)