使用ng test
命令在jasmine中运行单元测试时出错。
我已经正确配置了所有内容,因为之前它运行良好。我不知道为什么突然之间会出现这个错误。
浏览器中的 Description: Connection refused
。
12 02 2018 12:24:54.858:WARN [karma]: No captured browser, open http://localhost
:9876/
12 02 2018 12:24:54.890:INFO [karma]: Karma v1.2.0 server started at http://loca
lhost:9876/
12 02 2018 12:24:54.890:INFO [launcher]: Launching browser Chrome with unlimited
concurrency
12 02 2018 12:24:55.780:INFO [launcher]: Starting browser Chrome
12 02 2018 12:25:55.781:WARN [launcher]: Chrome have not captured in 60000 ms, k
illing.
12 02 2018 12:25:56.373:INFO [launcher]: Trying to start Chrome again (1/2).
12 02 2018 12:26:56.377:WARN [launcher]: Chrome have not captured in 60000 ms, k
illing.
12 02 2018 12:26:56.976:INFO [launcher]: Trying to start Chrome again (2/2).
12 02 2018 12:27:57.008:WARN [launcher]: Chrome have not captured in 60000 ms, k
illing.
12 02 2018 12:27:57.455:ERROR [launcher]: Chrome failed 2 times (timeout). Givin
g up.
答案 0 :(得分:0)
通过在IE浏览器中启用Automatically detect settings
代理设置,已解决此问题。但我不知道为什么需要这样做?如果有人知道什么是确切的问题和解决方案,那么请升级这个答案。