v1.1.0 ยท npm ยท GitHub

๐Ÿงช TestForge

Scan untested code, generate unit & E2E tests, visualize coverage gaps โ€” all powered by AI, all from the CLI.

$ npm install -g @magicpro97/testforge click to copy
Terminal
# Scan your project for untested code
$ testforge scan ./src
 
๐Ÿงช TestForge โ€” Scan Results
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
 
Total files: 24
Tested: 16
Untested: 8
Coverage: 67%
 
โœ— Untested files (8):
โ— src/core/scanner.ts โ€” 5 functions
โ— src/core/generator.ts โ€” 3 functions
 
# Generate tests with AI
$ testforge gen src/core/scanner.ts
 
โœ“ Tests generated!
Framework: jest
Tests: 12 test cases
Output: src/core/scanner.test.ts

Features

Everything you need for test coverage, powered by AI.

๐Ÿ”

Smart Scanning

Detect untested files and extract function signatures across TypeScript, Python, Dart, Kotlin, Swift.

๐Ÿค–

AI Test Generation

Generate unit tests with proper imports, edge cases, error handling โ€” powered by GPT-4o or Gemini.

๐ŸŽญ

E2E Test Flows

Describe a user flow in plain English, get Playwright/Detox/Maestro test code.

๐Ÿ“Š

Coverage Visualization

Parse Istanbul/lcov reports and display coverage bars in terminal.

๐Ÿ’ก

AI Suggestions

Prioritized recommendations on which tests to write first based on complexity and risk.

โšก

Framework Detection

Auto-detects Jest, Vitest, pytest, Flutter test โ€” generates in the right framework.

Quick Start

Get started in seconds.

testforge scan ./src Scan for untested code
testforge gen <file> AI-generate unit tests for a file
testforge gen:e2e "user flow description" Generate E2E test from natural language
testforge coverage . Show coverage summary in terminal
testforge suggest ./src AI-prioritized test recommendations
testforge config set openai.apiKey sk-... Configure AI provider

Part of the Forge Ecosystem

10 CLI tools for full-cycle app development & deployment.