feat: Add coverage report generation and enhance testing framework

- Introduced a new `.coverage` file for tracking test coverage metrics.
- Added `pytest.ini` configuration for streamlined testing setup, including coverage reporting and logging options.
- Created `requirements-test.txt` to manage testing dependencies, ensuring a consistent testing environment.
- Implemented a `run_tests.py` script to facilitate running tests with various options, including unit and integration tests.
- Established a structured testing directory with unit and integration tests, enhancing code reliability and maintainability.
- Updated documentation to reflect new testing procedures and configurations.
This commit is contained in:
Your Name committed 2025-12-22 13:26:26 +08:00
1 parent ce4a332dc0
commit 539e580147
44 files changed
+11824 -9501

No files matched your search

+8
View File
@@ -4,6 +4,14 @@ import os
import shutil
import sys
# ==== 首先配置日志系统,确保日志文件能正常写入 ==============================
try:
import douyin_logging
douyin_logging.configure_logging()
except Exception:
# 日志配置失败不影响主流程,但会缺少文件日志
pass
# ==== 兼容导入完整逻辑模块 douyin_fudai 及其依赖 ==============================
# 当前 WebGUI 目录中没有完整版 douyin_fudai.py,而是在 Cursor 的工作树中存在完整实现。
# 同时,我们在本目录下放置了一些 shim 模块(如 douyin_text_utils、douyin_swipe_ops 等),