- Home
- Skills
- Testing & Debugging
- Test Suite Generator — Risk-First Unit Tests (Jest, Vitest, Pytest, JUnit, Go)
More screenshots
Works with the AI tools you already use
Test Suite Generator — Risk-First Unit Tests (Jest, Vitest, Pytest, JUnit, Go)
Turns a function, module, or class into a risk-prioritized unit test suite: a test plan, edge cases, idiomatic test code, coverage gaps, and the commands to run it.
$12
Test Suite Generator — Risk-First Unit Tests (Jest, Vitest, Pytest, JUnit, Go)
Example session with this skill installed
Product: SeatHold venue seat holds
TypeScript + Vitest
Function: evaluateHold(heldAtMs, nowMs, holdMinutes, seatsRequested, seatsAvailable)
Returns: { status: "active" | "expired" | "invalid", reason, expiresAtMs }
Ask: solid unit suite; edge cases matter
- Read your context and instructions
- Compiled the test suite generator
Coverage confidence: STRONG
Tests generated: 18 (Vitest, unit)
Critical paths covered: yes
Plan highlights
- CRITICAL: nowMs === expiresAtMs → expired
- CRITICAL: seatsRequested > seatsAvailable → invalid
- HIGH: active mid-window + expiresAtMs contract
Generated: holdWindow.test.ts with it.each tables, fixed epoch clocks
Run: npx vitest run src/lib/holdWindow.test.ts
JSON: framework vitest, tests_generated 18, critical_paths 5/5
Connects securely to your tools. The creator never sees your data.
What you get
About this skill
The problem
- Blank “write some tests” prompts produce shallow happy-path cases and miss the edges where production breaks.
- Teams need a plan for what to test and why — not only a pile of assertions.
- Framework style matters: Jest, Vitest, Pytest, JUnit 5, and Go testing each have different idioms.
What it does
- Analyzes a function, module, or class and builds a risk-prioritized test plan.
- Enumerates edge cases (boundaries, invalid input, empty values, error paths, and more).
- Generates idiomatic test code for the detected framework (Jest, Vitest, Pytest, JUnit 5, or Go testing).
- Reports missing coverage honestly and lists what to add next.
- Provides exact run commands and a machine-readable Test Suite JSON.
Frameworks & tools
- JavaScript/TypeScript: Jest or Vitest (
describe/it,it.each, spies). - Python: Pytest (fixtures,
parametrize,raises). - Java: JUnit 5 (parameterized tests, clear display names).
- Go: table-driven tests with
testing(and testify only if already used). - Works from pasted code or repo paths your agent can read — no SaaS test cloud required.
Why this beats prompting it yourself
- Risk-first priorities (CRITICAL/HIGH first) instead of random examples.
- A full edge-case taxonomy so boundaries and invalid input are not forgotten.
- Anti-pattern guardrails: no over-mocking, no always-pass asserts, no implementation-detail tests.
- Framework-aware idioms instead of generic pseudocode.
- Review-before-write: tests are draft artifacts until you approve saving them.
How to install
Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.
- 1
Download the ZIP
Free skills download straight away. Paid skills unlock right after purchase.
- 2
Unzip into your skills folder
Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.
- 3
Ask your agent to use it
Restart the agent if it was already running. It picks the skill up automatically - no config needed.
Skills folder by agent
Click the path to copy it. Create the folder if it does not exist yet.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed our 8-point scan before listing
Fresh listing
Recently published to Agensi
30-day refund
Not a fit? Get your money back
Trust & safety
Security scanned
Verified clean 1 month ago
- Passed all security checks, Safe to install