test-gen

Generate unit and integration tests for Vitest, Jest, and Playwright frameworks.

Updated Jun 21, 2026
One-click install
npx skills add https://github.com/apexradius/agentic-os --skill test-gen-apexradius
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-gen
Source: https://github.com/apexradius/agentic-os/tree/main/skills/test-gen
Command: npx skills add https://github.com/apexradius/agentic-os --skill test-gen-apexradius

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

The test-gen Skill eliminates the manual process of writing unit and integration tests, reducing human error and increasing the speed of test development.

Core Features & Use Cases

  • Automated Test Generation: Automatically create tests based on existing patterns and framework (Vitest, Jest, Playwright).
  • Framework Detection: Detects the test framework specified in package.json to generate tests accordingly.
  • Happy Path, Edge Case, and Error Path Coverage: Generates tests that cover all possible paths for the given functionality, including happy paths, edge cases, and error paths.
  • Component Testing: Provides testing capabilities for components, such as render test, interaction test, and accessibility test.
  • Quick Integration: Integrate into existing projects easily without extensive manual setup.

Quick Start

Run the 'test-gen' Skill on a specific file or function to generate the tests. Example: test-gen path/to/module.js

Frequently Asked Questions about test-gen

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

FAQPage Schema
How do I automate test generation for Vitest, Jest, and Playwright?

Automated test generation analyzes existing source code and package.json framework configurations to create test cases for Vitest, Jest, and Playwright. It automatically generates tests covering happy paths, edge cases, and error paths to ensure comprehensive test coverage without manual effort.

Can I generate tests for component rendering and interactions automatically?

Yes, automated test generation provides component testing capabilities that create render tests, interaction tests, and accessibility tests. It detects your specified test framework and generates matching test cases to validate component behavior and ensure all code paths are tested.

How do I ensure my test coverage includes edge cases and error paths?

Test coverage for edge cases and error paths is ensured by generating test cases that target all possible execution routes for a given functionality. The automated test generation creates scenarios for happy paths, edge cases, and error paths directly from your source code.

Does automated test generation work with my existing project setup?

Automated test generation integrates quickly into existing projects without extensive manual setup. It detects the test framework specified in your package.json and generates tests accordingly, ensuring quick integration into your current development environment.

What is the best way to generate unit and integration tests without manual coding?

The best way to generate unit and integration tests without manual coding is using automated test generation tools that read source code and output matching framework tests. This eliminates manual writing, reduces human error, and increases the speed of test development.

When do I need to generate tests for multiple test frameworks?

You need to generate tests for multiple test frameworks when your development environment requires test coverage across Vitest, Jest, and Playwright. Automated test generation detects the specified framework and creates appropriate test suites to ensure all code paths are tested.