worldcrafter-test-generator

Generate unit, integration, and end-to-end tests with Vitest, real database integration, and Playwright.

Updated Nov 9, 2025
One-click install
npx skills add https://github.com/hopeoverture/worldcrafter-v2 --skill worldcrafter-test-generator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: worldcrafter-test-generator
Source: https://github.com/hopeoverture/worldcrafter-v2/tree/main/.claude/skills/worldcrafter-test-generator
Command: npx skills add https://github.com/hopeoverture/worldcrafter-v2 --skill worldcrafter-test-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides templates and scripts to generate comprehensive tests (unit, integration, and E2E) for WorldCrafter features, helping you quickly improve test coverage and reliability without writing boilerplate tests from scratch.

Core Features & Use Cases

  • Three-Layer Testing Pyramid: Unit tests, integration tests with a real DB, and Playwright E2E tests
  • Test Factories: Generate mock data factories for consistent test data
  • Page Object Models: Create maintainable E2E test structures
  • AI-Ready Mocking: Helpers to mock Supabase, Prisma, and API layers
  • Extensive Templates: Ready-to-use test templates for components, actions, and features

Quick Start

python generate_tests.py component <ComponentName> python generate_tests.py integration <FeatureName> python generate_e2e.py <FeatureName>

Frequently Asked Questions about worldcrafter-test-generator

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

FAQPage Schema
How do I generate comprehensive tests across unit, integration, and E2E layers?

This Skill automates test generation using a three-layer pyramid: unit tests with Vitest, integration tests with real database connections, and Playwright E2E tests. Run `python generate_tests.py component <ComponentName>` for units or `python generate_e2e.py <FeatureName>` for end-to-end coverage without writing boilerplate.

Can I use test factories and Page Object Models to reduce E2E test maintenance?

Yes. The Skill generates test factories for consistent mock data and Page Object Models that structure Playwright tests maintainably. This standardizes E2E test creation for auth, forms, and database operations, lowering long-term maintenance overhead.

How do I mock Supabase and Prisma in my tests?

The Skill provides AI-ready mocking helpers for Supabase and Prisma layers, enabling isolated unit and integration testing without external dependencies. Templates include patterns for mocking API responses and database operations consistently.

What's the fastest way to improve test coverage from scratch?

Use the Skill's ready-to-use templates and Python scripts to generate unit, integration, and E2E tests targeting 80%+ coverage. It eliminates boilerplate writing and applies proven patterns for components, actions, features, visualizations, and accessibility testing.

Does this work for testing real-time collaboration and AI features?

Yes. The Skill includes test templates and factory patterns for real-time collaboration, AI features, performance, accessibility, and import/export workflows alongside traditional component and form testing.

What dependencies do I need to run the test generation scripts?

The Skill has no external dependencies listed and uses Vitest, Playwright, and a real database for testing. Ensure your environment has Python for running the generation scripts and Node.js tooling for Vitest and Playwright.