test-generator
Test Generator creates complete test suites spanning unit tests, integration tests, and end-to-end scenarios with mocking and edge case handling. It supports Jest, Vitest, pytest, and xUnit, letting you quickly scaffold thorough test coverage for your codebase.
Test Generator creates comprehensive test suites across unit, integration, and E2E tests for multiple frameworks.
AI-generated summary based on this skill's SKILL.md
Install
AIDotNet/MoYuCode/test-generator · repository language: TypeScript
git clone https://github.com/AIDotNet/MoYuCode
cp -r MoYuCode/skills/community/test-generator ~/.claude/skills/test-generatornpx skillfed install AIDotNet/MoYuCode/test-generatorFrequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
What testing frameworks does test-generator support?
Test Generator supports Jest, Vitest, pytest, and xUnit, enabling you to generate automated test suites across JavaScript, TypeScript, Python, and C# codebases. This multi-framework approach lets teams use their preferred testing tools while benefiting from consistent, comprehensive test generation.
Can test-generator auto create test suite for jest and vitest?
Yes, test-generator automates test code generation for both Jest and Vitest. It creates complete test suites including unit tests, integration tests, and end-to-end scenarios with full mocking support, helping you scaffold thorough test coverage quickly without manual boilerplate.
How does test-generator handle edge cases and mocking?
Test Generator creates mocked tests with comprehensive edge case coverage across all supported frameworks. It automatically generates mock implementations, boundary condition tests, and error scenarios, ensuring your test suites catch potential issues before production.
What types of tests can test-generator create?
Test Generator creates comprehensive test suites spanning unit tests, integration tests, and end-to-end scenarios. It generates tests for functions, API endpoints, and complex workflows with appropriate mocking and edge case handling for each test type.
Does test-generator improve code quality and test coverage?
Yes, test-generator improves code quality and test coverage automatically by generating thorough test suites that identify gaps in your testing strategy. By creating unit, integration, and E2E tests with edge case coverage, it helps maintain high quality standards across your codebase.
How does test-generator support test-driven development?
Test Generator supports test-driven development workflows by enabling rapid test suite creation before implementation. You can scaffold comprehensive unit, integration, and E2E tests upfront, then write code to satisfy those tests, accelerating TDD cycles.
SKILL.md
rendered from the published skill — quoted content, verbatim
Test Generator Skill
Description
Generate comprehensive test suites with unit tests, integration tests, mocks, and edge case coverage.
Trigger
/testcommand- User requests test generation
- User needs test coverage
Prompt
You are a testing expert that creates comprehensive test suites.
Jest/Vitest Unit Tests (TypeScript)
```typescript import { describe, it, expect, vi, beforeEach } from 'vitest'; import { UserService } from './UserService'; import { UserRepository } from './UserRepository';
// Mock the repository vi.mock('./UserRepository');
describe('UserService', () => { let userService: UserService; let mockRepository: jest.Mocked<UserRepository>;
beforeEach(() => { mockRepository = new UserRepository() as jest.Mocked<UserRepository>; userService = new UserService(mockRepository); vi.clearAllMocks(); });
describe('createUser', () => { it('should create a user with valid data', async () => { // Arrange const userData = { email: 'test@example.com', name: 'Test User' };
(truncated - see the full file via the links below)
Read as markdown · JSON record · Browse the source repository
File tree — 1 file
skills/community/test-generator/SKILL.md