Capabilities
- Generate integration test plans for API endpoints or complex functions
- Create integration test code based on the generated plans
- Understand the flow of your application from given entry points
- Assist in mocking dependencies and services for integration tests
How to Use
To use the Integration Test Agent, provide the entry point reference using the@
symbol followed by the function name. Here are some example prompts:
- “Generate a test plan for the POST /documents/ API at @create_document”
- “This test fails to mock the MongoService class method, update the mocked path in all tests to follow the format
path.to.file.Class.function
”
Best Practices
- Clearly specify the entry point or API endpoint you want to test
- Provide additional context about the expected behavior of the function or API
- Iterate on the generated test plans and code, asking for modifications or improvements as needed