apply_prompt_unit_tests
Generate unit tests for code by providing a structured prompt, including optional specific instructions and version selection, integrated with Cursor IDE.
Instructions
Provides a prompt for generating unit tests for code
Input Schema
Name | Required | Description | Default |
---|---|---|---|
code_to_test | Yes | The code that needs unit tests | |
specific_instructions | No | Optional specific instructions to include in the prompt | |
version | No | The version of the prompt template to use (e.g., '1.0.0', '1.1.0', or 'latest') |
Input Schema (JSON Schema)
{
"properties": {
"code_to_test": {
"description": "The code that needs unit tests",
"type": "string"
},
"specific_instructions": {
"description": "Optional specific instructions to include in the prompt",
"type": "string"
},
"version": {
"description": "The version of the prompt template to use (e.g., '1.0.0', '1.1.0', or 'latest')",
"type": "string"
}
},
"required": [
"code_to_test"
],
"type": "object"
}