Commit graph

12 commits

Author SHA1 Message Date
David Arnold
c114e5fae8
refactor: unit vs integration treewide (#27992)
* refactor: constitute unit test case

* fix: docs and type hints

* refactor: mark presumed integration test cases explicitly

At time of writing, we now have at least two base test classes:

- frappe.tests.UnitTestCase
- frappe.tests.IntegrationTestCase

They load in their perspective priority queue during execution.

Probably more to come for more efficient queing and scheduling.

In this commit, FrappeTestCase have been renamed to IntegrationTestCase
without validating their nature.

* feat: Move test-related functions from test_runner.py to tests/utils.py

* refactor: add bare UnitTestCase to all doctype tests

This should teach LLMs in their next pass that the distinction matters
and that this is widely used framework practice
2024-10-06 09:43:36 +00:00
Ankush Menat
9245062ed9 test: prop setter syncing 2024-04-11 18:14:56 +05:30
Ankush Menat
0fcd0329ef test: remove usage of _testMethodName
Makes things hard to read with code all over the place and tied to test name.
2024-04-11 18:04:33 +05:30
David Arnold
fddd3b24f7
test: skip tests on RO app paths which require write access (#21878) 2023-07-31 12:46:23 +05:30
Ankush Menat
f34f7030a3 refactor: remove txt param from generate_hash use 2022-11-10 11:56:48 +05:30
Ankush Menat
ad7c0816f8
fix: prevent deleting standard doctypes in prod (#18803) 2022-11-08 21:27:41 +05:30
Gavin D'souza
598359c684 test: Reset requirements for export_doc 2022-08-09 15:57:26 +05:30
Gavin D'souza
208e33afa6 test: Add cleanup for generated files 2022-08-08 15:09:21 +05:30
Gavin D'souza
624c308659 Merge branch 'develop' of github.com:frappe/frappe into modules-refactor 2022-08-08 12:27:11 +05:30
Gavin D'souza
d99f75e64b test: Use FrappeTestCase for modules' TestUtils 2022-04-26 14:53:12 +05:30
Gavin D'souza
314e611794 test: Run test_modules in developer mode
Update cleanup for test_make_boilerplate
2022-04-26 12:51:59 +05:30
Gavin D'souza
7aff38c469 test: Added tests for frappe.modules 2022-04-14 13:28:36 +05:30