Docker容器中的Chrome无头的调试角度测试
我想调试我的角度测试(Jasmine + Karma)在Docker容器下在Chrome无头部运行。 因此,我可以编写更好的角度测试,并通过调试启用启用测试文件来理解问题。
请求查看此上的任何文档/参考。
I want to debug my Angular test (Jasmine + Karma) running in Chrome Headless under Docker Container.
So I can write better Angular Tests with Debugging enabled for my test files to understand the issue.
Requesting to see any documentation/references on this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当您开始测试时,您会看到一个消息:
这是我们需要暴露的端口。在Docker组合中,看起来像这样:
然后您可以在浏览器中转到该URL。
奖励积分:如果您的Docker主机是遥远的,则可以在机器和Docker主机之间打开SSH隧道:
When you kick off the tests, you'll see a message like:
That's the port that we need to expose. In Docker Compose, it would look like this:
Then you can just go to that URL in your browser.
Bonus points: if your docker host is remote, you can open an SSH tunnel between your machine and docker host like this: