frappe-doctype-tests
Frappe DocType Tests
See frappe-doctype-schema for the .json schema.
See frappe-doctype-controller for the .py server controller.
See frappe-doctype-form-view for the .js form controller.
See frappe-doctype-list-view for the _list.js list view controller.
Full API reference, assertion helpers, context managers, and CLI flags: REFERENCE.md.
Mandatory workflow
Before writing any test, complete these steps in order:
- Read the controller (
.py) — identify hooks, validations, computed fields, whitelisted methods - Read the schema (
.json) — identify fields, child tables, link fields,is_submittable, mandatory fields - Write the test (
test_{doctype}.py) in the same doctype folder - Run with
bench run-tests --module "app_name.module.doctype.my_doctype.test_my_doctype"
File location
More from kehwar/skills
tdd
Test-driven development with red-green-refactor loop. Use when user wants to build features or fix bugs using TDD, mentions "red-green-refactor", wants integration tests, or asks for test-first development. Tracks progress in Beads Issue Tracker.
12setup-workflow-skills
Sets up an `## Agent orientation` block in AGENTS.md/CLAUDE.md so the engineering skills know this repo uses Beads for issue tracking. Run before first use of `to-tasks`, `to-prd`, `tdd`, `improve-codebase-architecture`, or `zoom-out`.
12to-prd
Turn the current conversation context into a PRD and publish it to Beads Issue Tracker. Use when user wants to create a PRD from the current context.
11write-a-skill
Create new agent skills with proper structure, progressive disclosure, and bundled resources. Use when user wants to create, write, or build a new skill.
9to-tasks
Break a plan, spec, or PRD into independently-grabbable tasks/issues on Beads Issue Tracker using tracer-bullet vertical slices. Use when user wants to convert a plan into tasks, create implementation tickets, or break down work into tasks.
9grill-me
Interview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of the decision tree. Use when user wants to stress-test a plan, get grilled on their design, or mentions "grill me".
8