LLM TestGen
AI-powered unit test generation for modern codebases.
Instantly generate comprehensive test suites with zero configuration.
Works with top languages & frameworks — JavaScript, TypeScript, Python, Java, Go, PHP, and more.
Built for modern development
Everything you need to generate professional-quality test suites with zero configuration. From AI-powered analysis to framework-specific output.
- Languages Supported+
From JavaScript and Python to Rust and Go, we support all major programming languages with comprehensive testing frameworks.
- Tests Generated+
Our AI-powered engine has automatically generated thousands of high-quality test cases, saving developers countless hours.
- Code Coverage%
Achieve exceptional code coverage with our intelligent test generation that identifies critical paths and edge cases in your codebase.
- Avg. Generation Times
Lightning-fast test generation powered by optimized AI models, delivering comprehensive test suites in seconds, not hours.
Generate tests in 5 easy steps
From installation to running comprehensive test suites, here's everything you need to know to get started with AI-powered test generation.
See it in action
Watch the complete workflow from installation to test execution
👉🏽 Step 1:
Install LLM TestGen
Step 1Get started by installing the package globally or as a dev dependency in your project.
Commands
npm install -g llm-testgen
# Or locally: npm install --save-dev llm-testgen
Pro Tips
👉🏽 Step 2:
Configure API Key
Step 2Set up your Anthropic API key to enable AI-powered test generation. Get your key from the Anthropic Console.
Commands
export ANTHROPIC_API_KEY=your_api_key_here
# Windows: set ANTHROPIC_API_KEY=your_api_key_here
Pro Tips
👉🏽 Step 3:
Prepare Your Code
Step 3Have some source code ready for test generation. LLM TestGen supports JavaScript, TypeScript, Python, Java, and more.
// src/calculator.js
export function add(a, b) {
return a + b;
}
export function divide(a, b) {
if (b === 0) {
throw new Error('Division by zero');
}
return a / b;
}
Pro Tips
👉🏽 Step 4:
Generate Tests
Step 4Run the interactive mode for guided test generation, or use direct commands for quick generation.
Commands
llm-testgen interactive
# Or direct: llm-testgen src/calculator.js
# Batch: llm-testgen "src/**/*.js"
Pro Tips
👉🏽 Step 5:
Run Your Tests
Step 5Execute the generated tests using your preferred testing framework and enjoy comprehensive coverage.
Commands
npm test
# Or: jest tests/calculator.test.js
# Python: pytest tests/