feat: Refactor coverage management and enhance logging functionality

- Removed the `.coverage` file from the repository to streamline coverage management.
- Updated `.gitignore` to exclude coverage-related files and directories, ensuring a cleaner project structure.
- Introduced new scripts for checking GPU availability and detecting GUI parameter conflicts, enhancing the overall functionality of the application.
- Improved logging mechanisms across various modules to support better debugging and monitoring.
- Added comprehensive documentation for new features and updated existing markdown files for clarity.
This commit is contained in:
Your Name committed 2025-12-23 02:38:51 +08:00
1 parent 539e580147
commit e68f1dd3de
70 files changed
+62590 -10791

No files matched your search

+7 -44
View File
@@ -27,64 +27,23 @@ class TestRunParams:
y_pianyi=0,
needswitch=False,
wait_minutes=5,
min_prize_value_yuan=1.0,
min_participants=0,
max_participants=0,
skip_if_countdown_gt_seconds=600,
reset_after_swipes_enabled=False,
reset_after_swipes=10,
min_prize_value_yuan=1.0,
min_participants=0,
max_participants=0,
auto_join_fansclub=False,
fansclub_fail_action="stay",
high_value_fudai_enabled=False,
high_value_fudai_threshold_yuan=1000.0,
high_value_fudai_join_ahead_seconds=120,
high_value_fudai_max_swipe_back=60,
high_value_fudai_max_reservations=5,
high_value_fudai_after_action="continue",
high_value_room_revisit_enabled=True,
high_value_room_revisit_only_current_run=False,
reservation_back_verify_enabled=True,
reservation_back_swipe_delay=0.6,
reservation_preempt_min_value=0.0,
fudai_find_max_attempts=5,
fudai_icon_retry_delay_seconds=0.6,
fudai_icon_max_wait_seconds=5.0,
yanghao_enabled=False,
yanghao_enable_actions=False,
yanghao_recommend_duration_seconds=60,
yanghao_recommend_interval_seconds=0,
yanghao_like_prob=0.15,
yanghao_fav_prob=0.05,
yanghao_comment_prob=0.0,
yanghao_icon_roi_size=180,
yanghao_icon_match_threshold=0.72,
yanghao_like_template_path="assets/like.png",
yanghao_fav_template_path="assets/fav.png",
yanghao_after_dwell_swipe_direction="up",
yanghao_after_dwell_swipe_distance_px=900,
yanghao_like_icon_x=0,
yanghao_like_icon_y=-1,
yanghao_fav_icon_x=-1,
yanghao_fav_icon_y=0,
yanghao_comment_btn_x=0,
yanghao_comment_btn_y=-1,
yanghao_comment_input_x=0,
yanghao_comment_input_y=0,
yanghao_comment_send_x=0,
yanghao_comment_send_y=-1,
yanghao_comment_close_x=0,
yanghao_comment_close_y=0,
yanghao_comment_texts=[],
yanghao_like_keywords=[],
yanghao_fav_keywords=[],
stage_diag_max_time=15.0,
stage_diag_max_step_time=4.0,
live_room_match_threshold=0.7,
enable_ocr_mode1=False,
fudai_template_match_enabled=False,
fudai_template_match_threshold=0.7,
lucky_draw_red_ratio_threshold=0.8,
skip_if_countdown_lt_seconds=5,
)
assert params.device_id == "test_device"
@@ -136,3 +95,7 @@ class TestRunner:
# 简化处理
assert True # 占位测试