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:
1 parent
ce4a332dc0
commit
539e580147
44 files changed
+11824
-9501
No files matched your search
@@ -6,12 +6,19 @@
|
||||
|
||||
运行前打印版本号的入口统一用 print_version_banner()。
|
||||
"""
|
||||
|
||||
from typing import Optional
|
||||
|
||||
APP_NAME = "douyin_guaji"
|
||||
APP_VERSION = "V3.3.1"
|
||||
APP_BUILD_DATE = "2025-12-14"
|
||||
|
||||
# 兼容旧代码与测试:提供 VERSION / RELEASE_DATE 别名
|
||||
# tests 期望: from version import VERSION, RELEASE_DATE, print_version_banner
|
||||
# VERSION 应该是纯数字的 x.y.z 形式,这里去掉前缀 V
|
||||
VERSION = APP_VERSION.lstrip("Vv")
|
||||
RELEASE_DATE = APP_BUILD_DATE
|
||||
|
||||
|
||||
def get_version_string() -> str:
|
||||
return f"{APP_VERSION} ({APP_BUILD_DATE})"
|
||||
|
||||
Reference in new issue
Block a user