seitime-frappe/frappe/commands
David Arnold e39ecfa274
refactor: Test runner 2 (#27987)
* feat: Improve logging in test runner

* feat: Categorize tests as unit or integration

* feat: Add support for selecting test categories

* feat: Split unit and integration tests execution

* test: better output on cli runner

* feat: Create TestRunner class

* feat: Implement run method in TestRunner class

* refactor: Refactor test discovery and execution in TestRunner class

* feat: Integrate _run_doctype_tests functionality into TestRunner class

* feat: Integrate _run_unittest functionality into TestRunner class

* refactor: Handle distinction between loading specific test case and entire module

* feat: Add handling of test dependencies in _add_module_tests method

* refactor: Merge _add_tests into discover_tests

* feat: Improve test results printing with click

* refactor: wrap in proper error handling

* fix: some signatures

* feat: Add debug logs to frappe/test_runner.py

* refactor: Move before_tests hooks after test discovery

* refactor: Use TestConfig instead of frappe.flags.skip_before_tests

* refactor: Add skip_test_records to TestConfig and update calling sites

* feat: Defer test record creation until after before_tests hooks

* feat: Add app parameter to _run_doctype_tests and _run_module_tests

* feat: Add --test-category option to run_tests command

* refactor: Add explanatory comments for skipping before_tests hooks and test record creation callbacks for unit tests

* feat: Add test category option to run_tests command

* feat: Unify explanatory comments in _prepare_integration_tests

* fix: wrap implicit db access in try-except block

* fix: mark current site

* fix: case counting
2024-10-05 16:37:19 +00:00
..
__init__.py refactor: type hint cli context 2024-09-13 17:25:43 +02:00
gettext.py refactor: type hint cli context 2024-09-13 17:25:43 +02:00
redis_utils.py perf: defer imports during CLI 2024-02-19 18:10:07 +05:30
scheduler.py refactor: type hint cli context 2024-09-13 17:25:43 +02:00
site.py chore: add back describe-database-table command 2024-09-18 16:48:49 +05:30
translate.py refactor: type hint cli context 2024-09-13 17:25:43 +02:00
utils.py refactor: Test runner 2 (#27987) 2024-10-05 16:37:19 +00:00