Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By jeremylongshorev1.21.0MITIn 1 marketplace
Generates unit test files for a source file, covering valid inputs, edge cases, error paths and mocked dependencies. Detects the project's test framework automatically or takes one via a --framework flag.
Trending plugins
7-day copy clicks
You run one by typing its /name in Claude Code.
Public GitHub repos that commit this plugin as enabled in their Claude Code settings
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Jest, Vitest, Pytest, JavaScript, TypeScript, Python, Java
unit-tests, test-generation, mocking, edge-cases, framework-detection, test-coverage, tdd, mocha ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Automatically generate comprehensive unit tests from source code with intelligent framework detection and best practices.
/plugin install unit-test-generator@claude-code-plugins-plus
/generate-tests src/utils/validator.js
/generate-tests --framework pytest src/api/users.py
/gut models/UserModel.ts
The plugin creates test files with:
| Language | Frameworks |
|---|---|
| JavaScript/TypeScript | Jest, Mocha, Vitest, Jasmine |
| Python | pytest, unittest, nose2 |
| Java | JUnit 5, TestNG |
| Go | testing package |
| Ruby | RSpec, Minitest |
| C# | xUnit, NUnit, MSTest |
| PHP | PHPUnit |
| Rust | cargo test |
For a JavaScript validation function:
// Input: src/utils/validator.js
function validateEmail(email) {
if (!email) return false;
return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email);
}
// Generated: src/utils/validator.test.js
describe('validateEmail', () => {
it('should return true for valid email addresses', () => {
expect(validateEmail('[email protected]')).toBe(true);
expect(validateEmail('[email protected]')).toBe(true);
});
it('should return false for invalid email addresses', () => {
expect(validateEmail('notanemail')).toBe(false);
expect(validateEmail('@example.com')).toBe(false);
expect(validateEmail('user@')).toBe(false);
});
it('should return false for null or undefined inputs', () => {
expect(validateEmail(null)).toBe(false);
expect(validateEmail(undefined)).toBe(false);
expect(validateEmail('')).toBe(false);
});
it('should handle edge cases', () => {
expect(validateEmail('[email protected]')).toBe(true); // Minimal valid email
expect(validateEmail('[email protected]')).toBe(true); // Multiple dots
});
});
The plugin follows testing best practices:
npm install --save-dev jest)MIT
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground
npx claudepluginhub jeremylongshore/tons-of-skills-marketplace --plugin unit-test-generator