From sundial-org-awesome-openclaw-skills-4
Generates unit tests from source files using AI. Covers happy paths, edge cases, and error conditions for Jest, Vitest, or Mocha.
How this skill is triggered — by the user, by Claude, or both
Slash command
/sundial-org-awesome-openclaw-skills-4:test-genThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Your code has 12% test coverage and your manager is asking questions. This tool generates unit tests from your source files. Covers happy paths, edge cases, error conditions. Tests that actually test something, not just exist for coverage numbers.
Your code has 12% test coverage and your manager is asking questions. This tool generates unit tests from your source files. Covers happy paths, edge cases, error conditions. Tests that actually test something, not just exist for coverage numbers.
One command. Zero config. Just works.
npx ai-test-gen ./src/utils.ts
# Generate tests for a single file
npx ai-test-gen ./src/auth.ts
# Generate for all files in a directory
npx ai-test-gen ./src/services/
# Specify test framework
npx ai-test-gen ./src/utils.ts --framework vitest
# Output to a specific location
npx ai-test-gen ./src/parser.ts --output ./tests/parser.test.ts
This is one of 110+ free developer tools built by LXGIC Studios. No paywalls, no sign-ups, no API keys on free tiers. Just tools that work.
Find more:
No install needed. Just run with npx. Node.js 18+ recommended.
npx ai-test-gen --help
The tool parses your source file, identifies testable units (functions, classes, methods), analyzes their signatures and implementations, then generates test cases that cover normal operation, edge cases, and error handling.
MIT. Free forever. Use it however you want.
Built by LXGIC Studios
npx claudepluginhub joshuarweaver/cascade-ai-ml-agents-misc-2 --plugin sundial-org-awesome-openclaw-skills-4Generates tests for any file type with automatic framework detection, project convention matching, and type-specific routing (React, Vue, Python, Go, Rust, PHP, E2E).
Generates comprehensive unit tests from source code covering happy paths, edge cases, and error conditions. Supports Jest, Vitest, Mocha, pytest, JUnit 5, and Go testing.
Generates unit tests matching project patterns and frameworks like Jest/Vitest (JS/TS), pytest (Python), Go testing, JUnit (Java), RSpec (Ruby).