Terminate a browser immediately when all tests are done on it
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- javascript
- 领域
- testing-qa
调研方向
首先使用多个浏览器运行所示的 npm test 命令,并检查测试完成和浏览器终止时 test-runner 的生命周期。跟踪 Selenium 和 BrowserStack 会话的管理方式;完成意味着每个浏览器在其测试结束后立即终止,且不会被视为卡住或重新运行其最后一个模块。
由索引模型根据 Issue 内容生成。
描述
Currently, JTR only terminates browsers when all tests are done in all requested browsers.
It's not a problem for our CI as we only run JTR on a single browser at a time, but it makes local test runs much more annoying.
For example, running the following in jQuery:
npm run test:unit -- -v -c jtr-isolate.yml --browserstack 'IE_11' --browserstack 'Chrome_latest' --browserstack 'Firefox_latest' --browserstack 'Safari_latest'
usually leads to modern browsers finishing quickly and waiting while IE is running tests. Since they wait for a long time, the browsers are idle for too long and... JTR (or something under the hood) thinks it's because the browser got stuck, restarts the browser and re-runs the last module tests on it (here: tween).
One possible solution to this would be to fix this detection, but needlessly keeping the browser running in idle mode is also not great; just terminating the browser when it's done would solve both issues at the same time.
- 主要语言
- JavaScript
- 星标
- 4
- 派生
- 2
- 平均合并
- 1 天 2 小时
- 30 天内合并 PR
- 1
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
jquery/jquery-test-runner 的其他 Issue
-
`latest-1` should match the highest version below the latest, not really latest minus 1可能重新可做 @timmywil 于 464 天前认领,目前没有进行中的 PR。 未关闭
jquery/jquery-test-runner#17 · 5 条评论 · 已指派 1 人 ·
-
Failed DELETE worker requests don't trigger test retries可能重新可做 @timmywil 于 590 天前认领,目前没有进行中的 PR。 未关闭
jquery/jquery-test-runner#15 · 已指派 1 人 ·
查看 jquery/jquery-test-runner 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 72/100
TMHSDigital/Free-Game-Dev-Assets#301 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 79/100
-
📦 expo-router Android contributor: external needs review sdk-58 severity: medium
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
enhancement
难度 1/5 1 小时以内 新手友好度 78/100
angrymrt/wiskunde-fit#117 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
raulpetruta/ha-wa-bridge#62 ·