You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

VS Code中Pytest测试发现进程无限挂起问题求助

VS Code Pytest测试发现无限挂起问题

配置VS Code与Pytest测试发现集成时遇到问题:测试发现进程在工作区无限挂起。命令行下最小测试示例可正常运行,但VS Code完全检测不到任何测试,始终处于测试搜索挂起状态。

相关日志信息如下:

2025-10-29 21:46:49.426 [error] Test discovery already in progress, not starting a new one.
2025-10-29 21:47:42.283 [debug] Testing: Stop refreshing triggered
2025-10-29 21:47:42.771 [debug] Testing: Manually triggered test refresh
2025-10-29 21:47:42.771 [debug] Testing: Clearing all discovered tests
2025-10-29 21:47:42.771 [debug] Testing: Forcing test data refresh
2025-10-29 21:47:42.771 [debug] Testing: Refreshing all test data
2025-10-29 21:47:42.771 [info] Discover tests for workspace name: gnn_release - uri: /scratch/project/tcr_ml/gnn_release
2025-10-29 21:47:42.771 [error] Test discovery already in progress, not starting a new one.

当前使用极简文件夹结构:
文件夹结构截图

内容的提问来源于stack exchange,提问作者mightyandweakcoder

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.12 03:07:11