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

VS Code Test Explorer测试完成后持续运行故障求助

VS Code更新后Test Explorer与Playwright集成异常:测试完成后仍持续运行一分钟

我用VS Code结合Playwright搭建自动化测试体系,之前VS Code的Test Explorer工具一直很好用,但最近更新VS Code后出现了故障:所有测试实际在23.8秒内就全部通过(截图可证),但Test Explorer会持续显示运行状态长达一分钟左右,这段时间里既没法点击停止按钮,也不能启动新的测试。

我试过跑空测试,问题依然存在,所以可以排除是测试代码本身的问题。

附上我的package.json配置:

{
  "name": "playwright_automation",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "pretest": "",
    "test": "npx playwright test --project=chromium",
    "posttest": ""
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "devDependencies": {
    "@playwright/test": "^1.47.0",
    "@testomatio/reporter": "^1.4.0",
    "@types/mysql": "^2.15.25",
    "@types/node": "^20.10.7",
    "@types/pg": "^8.11.0"
  },
  "dependencies": {
    "hygen": "^6.2.11",
    "mysql": "^2.18.1",
    "pg": "^8.11.3",
    "playwright": "^1.41.1",
    "ts-node": "^10.9.2",
    "typescript": "^5.3.3"
  }
}

有没有人遇到过类似问题,或者知道解决办法?

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.06.18 08:50:00