test-generator

Generate unit, integration, and end-to-end tests for Jest, Vitest, and Pytest.

23|2|Updated Jan 17, 2026
One-click install
npx skills add https://github.com/asgarovf/locusai --skill test-generator-asgarovf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-generator
Source: https://github.com/asgarovf/locusai/tree/main/skills/test-generator
Command: npx skills add https://github.com/asgarovf/locusai --skill test-generator-asgarovf

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the creation of unit, integration, and end-to-end tests, significantly reducing the manual effort required to ensure code quality and coverage.

Core Features & Use Cases

  • Test Coverage: Automatically generate tests to meet desired coverage levels.
  • New Feature Testing: Quickly scaffold tests for newly implemented features.
  • Test Suite Improvement: Enhance existing test suites with edge cases and better patterns.
  • Use Case: You've just added a new complex function to your codebase. Use this Skill to generate a comprehensive suite of Jest tests covering happy paths, edge cases, and error conditions.

Quick Start

Use the test-generator skill to write unit tests for the calculateTotal function in src/utils.js.

Frequently Asked Questions about test-generator

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

FAQPage Schema
How do I generate unit tests for a new function in my codebase?

To generate unit tests for new functions, the Skill automatically scaffolds test suites covering happy paths, edge cases, and error conditions based on your source code, reducing manual effort and ensuring comprehensive test coverage.

Can I use this to write integration and e2e tests, or is it just for unit tests?

Yes, you can generate integration and e2e tests alongside unit tests. The Skill supports comprehensive test generation for various testing levels to improve overall code coverage and validate feature interactions.

Does the test generator work with Jest, Vitest, and Pytest frameworks?

The test generator supports Jest, Vitest, and Pytest frameworks. It incorporates best practices for test structure, mocking, and naming conventions specific to these testing tools to ensure valid test suites.

What's the best way to improve code coverage for an existing test suite?

The best way to improve code coverage is by enhancing existing test suites with generated edge cases and better testing patterns. The Skill identifies gaps and adds tests to meet your desired coverage levels automatically.

How do I quickly scaffold tests for newly implemented software features?

You can quickly scaffold tests for new features by directing the Skill to your newly implemented code. It generates a comprehensive suite of tests covering appropriate paths and error conditions for rapid validation.

Are there limitations when generating tests with complex mocking requirements?

While the Skill incorporates best practices for mocking and test structure, complex highly coupled code may require manual adjustments to the generated tests to ensure accurate integration and end-to-end test execution.