frappe-fixture-creator

Generate Frappe fixture JSON files for test data and master data.

25|14|Updated Dec 15, 2025
One-click install
npx skills add https://github.com/Venkateshvenki404224/frappe-apps-manager --skill frappe-fixture-creator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frappe-fixture-creator
Source: https://github.com/Venkateshvenki404224/frappe-apps-manager/tree/main/frappe-apps-manager/skills/frappe-fixture-creator
Command: npx skills add https://github.com/Venkateshvenki404224/frappe-apps-manager --skill frappe-fixture-creator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Manually creating test data, master data, or initial site configurations for Frappe applications is repetitive and crucial for consistent testing and deployment. This Skill automates fixture generation, ensuring repeatable setups.

Core Features & Use Cases

  • Test Fixture Generation: Create JSON files for various DocTypes to populate test environments with consistent, predefined data.
  • Hierarchical Fixtures: Generate fixtures for tree-structured DocTypes like Customer Groups or Item Groups, maintaining their relationships.
  • Import Integration: Provide code snippets for programmatically loading fixtures during app installation or site setup.
  • Use Case: Generate a set of fixtures for 'Item' and 'Item Group' DocTypes to quickly set up a product catalog for testing or a new site deployment.

Quick Start

Generate a fixture JSON file for a 'Customer' DocType, including a test customer named '_Test Customer' in the 'Commercial' group.

Frequently Asked Questions about frappe-fixture-creator

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

FAQPage Schema
How do I generate Frappe fixture JSON files for test data?

Generate Frappe fixture JSON files by defining DocType structures and field values, then exporting them as JSON for consistent test data population. This Skill automates creation of fixture files for Items, Customer Groups, and other DocTypes with predefined field mappings and hierarchical relationships.

Can I create hierarchical fixtures for tree-structured DocTypes in Frappe?

Yes, hierarchical fixtures maintain parent-child relationships for tree-structured DocTypes like Customer Groups and Item Groups. The Skill generates fixture JSON that preserves these hierarchies, enabling accurate recreation of grouped master data across test environments and deployments.

How do I automate loading fixtures during Frappe app installation?

Load fixtures programmatically during app setup by integrating fixture JSON files with the data_import_tool during the before_install hook. This enables automated master data and test data population when your Frappe app installs on new sites without manual data entry.

What fields can I include in Item fixtures for ERPNext?

Item fixtures support fields including doctype, item_code, item_group, stock_uom, is_stock_item, is_purchase_item, is_sales_item, opening_stock, valuation_rate, and standard_rate. Configure these fields in your fixture JSON to define complete product catalog data for testing or new deployments.

Can I use fixtures to quickly set up master data for new Frappe deployments?

Yes, fixtures provide repeatable site initialization for new deployments and demos by bundling predefined master data like products, customer groups, and configurations in JSON format. Load fixtures via the app setup workflow to establish consistent baseline data without manual setup overhead.

Does this approach work for both test data and production master data in Frappe?

Fixtures work for test environments, demos, and new site deployments with predefined master data. They ensure consistent, repeatable data structures across multiple environments; use version control to maintain fixture definitions alongside your Frappe app code.