Terminate a browser immediately when all tests are done on it

未关闭
#32 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 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 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

jquery/jquery-test-runner 的其他 Issue

查看 jquery/jquery-test-runner 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。