Contract Testing: Review Pact Tests
contract-testing_review_pact_testsReview Pact tests with AI from PactFlow. Provide pact test code, source code, error messages, or OpenAPI specs to get targeted recommendations for improving contract tests.
Instructions
Review Pact tests using PactFlow AI. You can provide the following inputs: (1) Pact tests to be reviewed along with metadata
Toolset: Review Pact Tests
Parameters:
pactTests (object) required: Primary pact tests that needs to be refined.
code (array): Collection of source code files to analyze and extract API interactions from. Include client code, data models, existing tests, or any code that makes API calls
userInstructions (string): Optional free-form instructions that provide additional context or specify areas of focus during the refinement process of the Pact test.
errorMessages (array): Optional error output from failed contract test runs. These can be used to better understand the context or failures observed and guide the recommendations toward resolving specific issues.
openapi (any)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Collection of source code files to analyze and extract API interactions from. Include client code, data models, existing tests, or any code that makes API calls | |
| openapi | No | If provided, the OpenAPI document which describes the API being tested and is accompanied by a matcher which will be used to identify the interactions in the OpenAPI document which are relevant to the Pact refinement process. | |
| pactTests | Yes | Primary pact tests that needs to be refined. | |
| errorMessages | No | Optional error output from failed contract test runs. These can be used to better understand the context or failures observed and guide the recommendations toward resolving specific issues. | |
| userInstructions | No | Optional free-form instructions that provide additional context or specify areas of focus during the refinement process of the Pact test. |