AI-powered test gap analysis for TypeScript codebases.
Find what you're not testing — before it finds you.
AI writes code. AI writes tests. But those tests only confirm what the code does — not what your product should do. testsense closes that gap.
It analyzes your codebase, reads your existing tests, and tells you the most important flows you're not testing — with generated Playwright stubs for the top findings.
npx testsense analyze- Parses your codebase — maps pages, API routes, components, and hooks using TypeScript AST analysis
- Reads your existing tests — builds a coverage map of what's already tested
- Finds what's missing — uses Claude to identify the most critical untested flows and why they matter
Create a testsense.config.ts at your project root:
import { defineConfig } from 'testsense'
export default defineConfig({
src: './src',
tests: './tests',
framework: 'playwright',
})Set your API key:
export ANTHROPIC_API_KEY=your_key_herenpx testsense analyze # Terminal output (default)
npx testsense analyze --output json # JSON (for CI integration)
npx testsense analyze --output markdown # Markdown (for PR comments)
npx testsense analyze --top 5 # Show top 5 gaps (default: 3)
npx testsense analyze --focus checkout # Focus on a specific flow- Gap analysis CLI
- GitHub Action — PR-triggered analysis with comment output
- MCP server — test intelligence in Claude Code / Cursor / Windsurf
- Cloud dashboard — team analytics, historical trends, Linear/Jira integration
MIT © Cristian Sarmiento