Loading repository data…
Loading repository data…
yadavxprakhar / repository
AI-powered test generator for 12+ languages. Auto-creates comprehensive tests with 80%+ coverage for pytest, Jest, JUnit & more. Reduce testing time by 70-90%.
PolyTest AI is an advanced, high-speed, and intelligent static analysis dashboard and CLI platform. It recursively parses code constructs, models abstract syntax trees (ASTs), executes non-destructive Drycompile syntax linting, streams sandboxed subprocess telemetry, and generates fully functional unit test suites through secure, offline prompt caching.
PUBLIC/PRIVATE), async/promise checks, and generate mock recommendations.node --check, javac -Xlint, gcc -fsyntax-only).MD5 checksum signatures derived from prompts and source files. If files are unchanged, it pulls from cache logs in 15ms, avoiding duplicate LLM API tokens charges.DISABLED to a glowing ACTIVE (HIT) displaying computed hash keys.+ Add File), choose languages, assign test frameworks, and verify AST parsing immediately in state.├── app/ # Host desktop wrappers
├── backend/ # Node.js + TypeScript REST API Server
│ ├── src/index.ts # Express server routes
│ └── src/core/ # Language detectors, parsers, test generators, runners
├── cache/ # Encrypted MD5 local cache logs
├── cli/ # High-performance CLI dashboard (Python)
├── core/ # Core analysis modules (Python backend)
├── frontend/ # Premium React + Vite Developer Dashboard
│ ├── src/App.tsx # Core dashboard workspace component
│ └── src/index.css # Premium styling layers
├── prompt/ # Custom system LLM prompt models
├── report/ # Coverage audit HTML dashboards
└── tests/ # Generated framework unit test files
Configure parameters and launch the compilation server:
cd backend
npm install
npm run build
npm run dev
API engine boots up at: http://localhost:8000
Launch the premium web workspace:
cd ../frontend
npm install
npm run dev
Dashboard console compiles and opens at: http://localhost:5173
source .venv/bin/activate
pip install -r requirements.txt
python3 -m cli.main init
python3 -m cli.main analyze src/calculator.py
python3 -m cli.main generate src/ --mock --no-cache
export GEMINI_API_KEY="your_api_key_here"
python3 -m cli.main generate src/calculator.py --provider gemini --model gemini-1.5-flash
| Language | Default Framework | Supported Frameworks | Linter Validator |
|---|---|---|---|
| TypeScript | Jest | Jest, Mocha | Node check (node --check) |
| JavaScript | Jest | Jest, Mocha | Node check (node --check) |
| Python | pytest | pytest, unittest | Python AST compilation |
| Java | JUnit 5 | JUnit 5, JUnit 4 | JDK compiler (javac) |
| C++ | Google Test | Google Test | C++ compilation (g++ / clang++) |
| Go | testing | testing | Go tool compiler |
| C# | xUnit | xUnit | Roslyn compiler (csc) |
Distributed under the MIT License. See LICENSE for details.