Skip to main content
Glama

Houtini-lm

by houtini-ai

generate_unit_tests

Generate comprehensive unit tests for code with framework-specific patterns and complete coverage strategies to ensure production-ready quality.

Instructions

Generate comprehensive unit tests for code with framework-specific patterns and complete coverage strategies

WORKFLOW: Ideal for creating production-ready code, tests, and documentation TIP: Generate unlimited iterations locally, then review with Claude SAVES: Claude context for strategic decisions

Input Schema

NameRequiredDescriptionDefault
codeNoThe code to generate tests for (for single-file analysis)
contextNoOptional context for framework-specific testing patterns
coverageTargetNoTest coverage target levelcomprehensive
filePathNoPath to single file to generate tests for
filesNoArray of specific file paths (for multi-file test generation)
languageNoProgramming languagejavascript
maxDepthNoMaximum directory depth for multi-file discovery (1-5)
projectPathNoPath to project root (for multi-file test generation)
testFrameworkNoTesting framework to use (jest, mocha, pytest, phpunit, etc.)jest

Input Schema (JSON Schema)

{ "properties": { "code": { "description": "The code to generate tests for (for single-file analysis)", "type": "string" }, "context": { "description": "Optional context for framework-specific testing patterns", "type": "object" }, "coverageTarget": { "default": "comprehensive", "description": "Test coverage target level", "enum": [ "basic", "comprehensive", "edge-cases" ], "type": "string" }, "filePath": { "description": "Path to single file to generate tests for", "type": "string" }, "files": { "description": "Array of specific file paths (for multi-file test generation)", "type": "array" }, "language": { "default": "javascript", "description": "Programming language", "type": "string" }, "maxDepth": { "default": 3, "description": "Maximum directory depth for multi-file discovery (1-5)", "type": "number" }, "projectPath": { "description": "Path to project root (for multi-file test generation)", "type": "string" }, "testFramework": { "default": "jest", "description": "Testing framework to use (jest, mocha, pytest, phpunit, etc.)", "type": "string" } }, "required": [], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/houtini-ai/lm'

If you have feedback or need assistance with the MCP directory API, please join our Discord server