test-gen

Generate unit, business-logic, and regression tests for Python and JavaScript projects.

1|Updated Feb 5, 2026
One-click install
npx skills add https://github.com/yannzurkinden/masterclass-cc-lausanne --skill test-gen
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: test-gen
Source: https://github.com/yannzurkinden/masterclass-cc-lausanne/tree/main/skills_copy/test-gen
Command: npx skills add https://github.com/yannzurkinden/masterclass-cc-lausanne --skill test-gen

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the generation of unit tests, business-logic tests, and regression tests, dramatically reducing manual test-writing effort.

Core Features & Use Cases

  • Automated creation of unit tests for functions and classes with Arrange-Act-Assert patterns and mocked dependencies.
  • Business-logic testing to validate workflows, validations, and state transitions.
  • Regression test generation linked to ticket context to prevent reoccurrence in future releases.
  • Workflow-aware: detects the test framework (Python: pytest via pytest.ini/pyproject.toml/setup.cfg; JS/TS: jest/vitest via jest.config.* or package.json) and scans common test directories; can limit analysis to a specific path.

Quick Start

Run test-gen to generate tests for your repository. For example, run test-gen to scan the project root, or test-gen src/services to focus on a module.

Frequently Asked Questions about test-gen

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I auto-generate pytest unit tests for my Python project?▼

Yes, it detects JavaScript test frameworks like jest and vitest by scanning configuration files such as jest.config or package.json, then generates appropriate unit, business-logic, and regression tests for your JS or TypeScript project.

How do I generate regression tests linked to a specific ticket or module?▼

Generate regression tests by providing a target path like src/services to scope the analysis, producing categorized regression test artifacts linked to ticket context to prevent issue reoccurrence in future releases.

Can I scope automated test generation to a specific directory instead of the whole project?▼

Yes, you can scope automated test generation by providing a specific path argument like src/services, limiting the framework detection and file scanning to that directory for targeted test artifact output.

Does automated test generation support mocking external dependencies?▼

Yes, automated test generation supports mocking external dependencies, creating unit tests that isolate functions and classes by mocking external services to ensure accurate Arrange-Act-Assert pattern execution.

What is the difference between unit, business-logic, and regression test categories?▼

Unit tests validate individual functions and classes with mocked dependencies, business-logic tests validate workflows and state transitions, and regression tests link to ticket context to prevent issue reoccurrence across releases.