
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
testgen-cli
Advanced tools
AI-powered unit test generation CLI tool for PHP, JavaScript, and TypeScript
AI-powered test generation for PHP, JavaScript, and TypeScript. Generate comprehensive unit tests with a single command.

You can now generate tests without creating an account or logging in. Just install and start testing!
# 1. Install globally
npm install -g testgen-cli
# 2. Generate tests (no login required!)
testgen generate src/your-file.js
That's it! Start generating tests immediately without any authentication.
Want early access to premium features? → Create an account
--verboseInstall once, use in any project - no login required:
npm install -g testgen-cli
Now you can use testgen anywhere:
cd ~/my-project
testgen generate src/api/users.js
cd ~/another-project
testgen generate app/Models/User.php
Install in your project as a dev dependency:
npm install --save-dev testgen-cli
Use with npx:
npx testgen generate src/components/Button.tsx
Or add to your package.json:
{
"scripts": {
"test:generate": "testgen generate"
}
}
npm run test:generate src/utils/helpers.js
npx testgen generate src/your-file.ts
Note: First run downloads the package temporarily - no account needed!
testgen generate app/Services/PaymentService.php
Output: tests/Unit/Services/PaymentServiceTest.php
testgen generate src/utils/formatters.js
Output: src/utils/formatters.test.js
testgen generate src/hooks/useAuth.ts
Output: src/hooks/useAuth.test.ts
testgen generate src/api.js --output tests/integration/api.test.js
testgen generate src/calculator.ts --verbose
testgen generate <file> # Generate test for a file (no login required!)
testgen login # (Optional) Login for premium features
testgen status # Check your usage quota (requires login)
testgen --help # Show help
testgen --version # Show version
testgen generate <file> [options]
Options:
-o, --output <path> Custom output path for test file
-v, --verbose Show detailed generation information
| Language | Test Framework | File Extensions | Output Location |
|---|---|---|---|
| PHP | PHPUnit, Pest | .php | tests/Unit/YourFileTest.php |
| JavaScript | Jest | .js, .jsx | your-file.test.js |
| TypeScript | Jest | .ts, .tsx | your-file.test.ts |
Limits:
This only happens if you're logged in. Run login again:
testgen login
Or simply use without login - no authentication required!
You've used your quota. Create an account or join waitlist for more.
If globally installed but command not found:
npm install -g testgen-cli
Or use without installing:
npx testgen-cli generate src/file.js
Maximum file size is 0.5MB. Split large files into smaller modules.
✅ Comprehensive test coverage ✅ Smart assertions and edge cases ✅ Framework-specific best practices ✅ Mocking and dependency injection ✅ Tests that actually run ✅ No login required - Start testing immediately!
Anonymous usage: Limited tests (backend-managed) Free account: 10 tests/month Premium: Early access to premium features - Join the waitlist
License: Elastic License 2.0
FAQs
AI-powered unit test generation CLI tool for PHP, JavaScript, and TypeScript
We found that testgen-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.