What problem does it solve?
This Skill helps you write dependable Frappe tests without falling into common traps like flaky fixtures, incorrect base classes, broken isolation, or misleading test results.
Core Features & Use Cases
- Test base class selection: Choose the right class for isolated logic tests, database-backed integration tests, or legacy v14 compatibility.
- Fixture and data setup: Create safe, repeatable test records with proper naming, dependency ordering, and one-time guards.
- Test execution guidance: Use the correct bench run-tests flags for apps, doctypes, modules, single methods, profiling, and reports.
- Use case: A developer adding validation to a Sales Order can quickly determine whether to use UnitTestCase or IntegrationTestCase, how to seed linked records, and how to structure the test file so the runner discovers it correctly.
Quick Start
Ask for the right Frappe test class, fixture pattern, and bench run-tests command for your specific DocType or module, and include whether you need unit, integration, permission, or lifecycle coverage.