2014-08-30 58 views
0

道场的示例测试实习生(https://github.com/theintern/intern-examples/tree/master/dojo-example)下运行超时错误退出实际上并不测试任何东西,失败上连接到酱网络:TheIntern道场例如用

$ npm test 
> [email protected] 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 

确定它抱怨具有老酱连接二进制,但即使在下载并插入最新的SC(4.3)的路径。我还更新了.bin/intern-runner以包含js作为运行环境,而不是旧的node命令。用户名和密码是存储库中的用户名和密码(保持不变)。我遵循了文档,并取消了实习生配置文件中的隧道注释。

UPDATE:仍然会出现此问题。我发现代理启动Started scproxy on port 54687.奇怪,但是,进一步下来,Using no proxy for connecting to tunnel VM.。这些线不应该匹配吗? 这可能是因为这种不匹配与原始问题无关?新的Sauce Connect二进制文件仍然被忽略。

回答

0

UPDATE:其实这个解决方案只影响客户端,本地 - intern-client config=tests/intern。因此,该解决方案解决了最初发布的问题。/UPDATE

问题是,虽然我执行bower install如记录,凉亭组件安装在由bowerrc全局配置设置的文件夹。这与Dojo TodoMVC示例对组件的要求完全不同。

还提交了一个问题https://github.com/theintern/intern-examples/issues/10和一个拉请求。