fixture-generator

Community

Generate CakePHP fixtures from migrations.

Authormasanao-ohba
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill eliminates the tedious manual work of creating test fixtures and guarantees fixture schemas match database migrations, reducing drift between development and tests.

Core Features & Use Cases

  • Schema-first fixture generation: derives fixture definitions directly from config/Migrations, ensuring all columns and constraints are represented.
  • NOT NULL and constraint fidelity: preserves NOT NULL requirements and foreign keys to maintain realistic test data relationships.
  • Multi-database organization: supports multiple databases with namespace-based fixture placement like tests/Fixture/[ProjectDefault], [AppDefault], [AppClient].
  • Configure::read integration: uses application constants to populate fixture values, avoiding hard-coded test data.

Quick Start

To generate fixtures from migrations, run the fixture generator against your CakePHP project, and place the resulting ApplicationsFixture.php under tests/Fixture/[AppClient]/.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: fixture-generator
Download link: https://github.com/masanao-ohba/claude-manifests/archive/main.zip#fixture-generator

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.