frappe-integration-test-generator

Generate Python integration tests for multi-DocType workflows in Frappe.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Verifying the integrity of complex, multi-DocType workflows and business processes in Frappe requires robust integration tests, which can be challenging and time-consuming to write manually. This Skill automates integration test generation.

Core Features & Use Cases

  • Workflow Integration Tests: Generate Python test cases to simulate and validate complete end-to-end business cycles (e.g., Sales Order to Payment).
  • State Transition Tests: Verify that documents correctly transition between states and that state-dependent logic functions as expected.
  • Helper Methods: Include reusable helper functions for creating and manipulating test data within tests, simplifying test setup.
  • Use Case: Generate an integration test for the complete sales cycle, from creating a customer and sales order to submitting an invoice and making a payment, verifying all document statuses.

Quick Start

Generate an integration test for a 'Purchase Order' workflow, covering its creation, submission, and cancellation, and verifying the document status at each step.

Frequently Asked Questions about frappe-integration-test-generator

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

FAQPage Schema
How do I generate integration tests for Frappe workflows?▼

Integration test generation for Frappe workflows automates creation of Python test cases that validate multi-DocType interactions, state transitions, and business process integrity. The Skill generates representative test scaffolds with fixtures, helper methods, and assertions for create/submit/cancel transitions across document types.

Can I test end-to-end business processes like Sales Order to Payment in Frappe?▼

Yes. The Skill generates integration tests covering complete business cycles across multiple DocTypes—from customer creation through sales orders, invoices, and payments—verifying document statuses and state-dependent logic at each transition point.

What does a generated Frappe integration test include?▼

Generated tests include test classes inheriting from frappe.tests utilities, reusable helper methods for test data creation and manipulation, state transition assertions, document status verification, and fixtures for multi-DocType workflow validation.

Do I need to write test boilerplate manually for Frappe workflows?▼

No. The Skill eliminates manual test scaffolding by automatically generating representative test cases, helper functions, and assertion patterns for multi-DocType workflows, reducing setup time and improving test consistency.

How does this approach verify business process integrity in Frappe?▼

Integration tests validate that documents transition correctly between states, state-dependent logic executes as expected, and multi-DocType interactions maintain data consistency throughout complete business cycles.