在实习生(https://github.com/theintern/intern-examples/tree/master/dojo-example)下运行的Dojo测试示例实际上没有测试任何内容,在连接到Sauce网络时失败:
$ npm test
> dojo-intern-example@0.1.0 test /home/bogdanbiv/WebstormProjects/intern-examples/dojo-example
> intern-runner config=tests/intern
Listening on 0.0.0.0:9001
Starting tunnel...
Using no proxy for connecting to Sauce Labs REST API.
**********************************************************
A newer version of Sauce Connect (build 1283) is available!
Download it here:
https://saucelabs.com/downloads/sc-4.3-linux.tar.gz
**********************************************************
Started scproxy on port 49172.
Starting secure remote tunnel VM...
Secure remote tunnel VM provisioned.
Tunnel ID: 2f904e21cf1e4c3e83f63a4b3089127c
Secure remote tunnel VM is now: booting
Secure remote tunnel VM is now: running
Remote tunnel host is: maki76020.miso.saucelabs.com
Using no proxy for connecting to tunnel VM.
Establishing secure TLS connection to tunnel...
Cleaning up.
Finished! Deleting tunnel.
Error: failed to connect to tunnel VM.
Error: failed to connect to tunnel VM.
at reject <node_modules/intern/node_modules/digdug/SauceLabsTunnel.js:353:17>
at readStartupMessage <node_modules/intern/node_modules/digdug/SauceLabsTunnel.js:381:12>
at <node_modules/intern/node_modules/digdug/SauceLabsTunnel.js:434:12>
at Array.some <native>
at Socket.<anonymous> <node_modules/intern/node_modules/digdug/SauceLabsTunnel.js:428:21>
at Socket.EventEmitter.emit <events.js:117:20>
at Socket.<anonymous> <_stream_readable.js:746:14>
at Socket.EventEmitter.emit <events.js:92:17>
at emitReadable_ <_stream_readable.js:408:10>
at emitReadable <_stream_readable.js:404:5>
npm ERR! weird error 1
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm ERR! not ok code 0
好吧它确实抱怨有一个旧的Sauce Connect二进制文件,但即使在下载并插入最新SC(4.3)的路径之后。我还更新了.bin / intern-runner以包含js
作为运行环境而不是旧的node
命令。用户和密码是存储库中的用户和密码(保持不变)。我按照文档进行操作,并在实习配置文件中取消注释隧道。
更新:此问题仍然存在。我发现代理已启动Started scproxy on port 54687.
,但更进一步,Using no proxy for connecting to tunnel VM.
。 Aren这些线应该匹配吗?
可能是这种不匹配与原始问题无关?新的Sauce Connect二进制文件仍然被忽略。
答案 0 :(得分:0)
更新:实际上此解决方案仅影响客户端本地 - intern-client config=tests/intern
。因此,该解决方案解决了与最初发布的问题不同的问题。 /的更新强>
问题在于,虽然我按照文件记录执行了bower install
,但是bowerrc组件安装在由bowerrc全局配置设置的文件夹中。这与其组件所需的Dojo TodoMVC示例完全不同。
还在https://github.com/theintern/intern-examples/issues/10处提交了一个问题并提出了拉取请求。