frappe-unit-test-generator

Community

Generate Frappe unit tests, ensure code reliability.

AuthorVenkateshvenki404224
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Writing comprehensive unit tests for Frappe DocTypes, controllers, and API methods is essential for code quality but can be a time-consuming and repetitive task. This Skill automates unit test generation following best practices.

Core Features & Use Cases

  • DocType Test Structure: Generate complete Python test files with setUp and tearDown methods for consistent test environments.
  • Validation & Calculation Tests: Create test cases to verify controller validations, field calculations, and core business logic.
  • Permission & API Tests: Generate tests for role-based permissions and whitelisted API methods, ensuring secure and correct access.
  • Use Case: Generate unit tests for the 'Sales Invoice' DocType, covering posting date validation, total amount calculation, and the submission workflow.

Quick Start

Generate unit tests for the 'Item' DocType, including tests for its creation, validation of required fields, and ensuring stock UOM is set correctly.

Dependency Matrix

Required Modules

None required

Components

references

💻 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: frappe-unit-test-generator
Download link: https://github.com/Venkateshvenki404224/frappe-apps-manager/archive/main.zip#frappe-unit-test-generator

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