Everything you need to know to start generating tests with AI
TestGen is a command-line tool that uses artificial intelligence to automatically generate comprehensive unit tests for your code. It supports PHP, JavaScript, and TypeScript, and integrates seamlessly with popular testing frameworks like PHPUnit, Jest, and Vitest.
With TestGen, you can generate high-quality test suites in seconds, allowing you to focus on writing features instead of boilerplate test code. Currently in free beta—join early adopters in shaping the future of AI-powered testing.
Sign up for a free TestGen account to get started:
• Visit testorix.dev/register
• Enter your name, email, and password
• Click “Create Account”
✓ You're ready to use TestGen!
Install TestGen globally using npm:
npm install -g testgen-cliYou can also use yarn or pnpm if you prefer
Authenticate the CLI with your email and password:
testgen login
Enter your email: you@example.com
Enter your password: ••••••••
✔ Login successful!Your credentials will be securely stored locally
Start generating tests for your code:
testgen generate src/UserService.php
✔ Test generated
tests/UserServiceTest.php
12 tests • 2.3sAuthenticate with your TestGen account using email and password.
Generate unit tests for a specific file with optional flags.
Specify custom output path for the test file
Show detailed output including project context, imports, and metrics
View your account information and usage statistics.
After generating tests, run them with your project's testing framework:
For PHPUnit tests
For Pest tests
Run all tests
Run specific test file
Generate comprehensive test suites in 2-3 seconds using advanced AI models.
See test count, assertions, and generation time instantly in the CLI output.
Auto-detects your language, framework, and project structure—works out of the box.
Clean, distraction-free output by default with verbose mode for detailed info.
Full support for PHP with PHPUnit and Pest
testgen generate UserService.phpJest and Vitest support for JavaScript
testgen generate utils.jsFull TypeScript support with Jest and Vitest
testgen generate service.ts20 test generations per month during beta period
No credit card required • Help us improve the product
Join the waitlist at testorix.dev/#beta to be notified when premium accounts launch
Unlimited Generations
No monthly limits on test generation
Multi-file Analysis
Generate tests for entire modules
Smart Mocking
Auto-generate mocks and stubs
Team Collaboration
Share test templates
Having trouble getting started? Here are some quick tips:
testgen status to check your remaining quota--verbose flag to see detailed project context and metrics