实习教程功能测试异常

时间:2015-04-14 20:50:39

标签: intern

我正在努力在实习教程中运行功能测试。我在https://github.com/theintern/intern-tutorial使用实习教程开始实习生。单元测试很好。但是当我使用以下命令运行功能测试时。

SAUCE_USERNAME=<MyUserName> SAUCE_ACCESS_KEY=<MyPassword> ./node_modules/.bin/intern-runner config=tests/intern

我明白了;

Listening on 0.0.0.0:9000
Starting tunnel...
Ready
Using no proxy for connecting to Sauce Labs REST API.
Error: [POST http://(redacted)@localhost:4444/wd/hub/session] connect ECONNREFUSED
Error: connect ECONNREFUSED
  at exports._errnoException  <util.js:746:11>
  at TCPConnectWrap.afterConnect [as oncomplete]  <net.js:1000:19>
Error: [POST http://(redacted)@localhost:4444/wd/hub/session] connect ECONNREFUSED
Error: connect ECONNREFUSED
  at exports._errnoException  <util.js:746:11>
  at TCPConnectWrap.afterConnect [as oncomplete]  <net.js:1000:19>
Error: [POST http://(redacted)@localhost:4444/wd/hub/session] connect ECONNREFUSED
Error: connect ECONNREFUSED
  at exports._errnoException  <util.js:746:11>
  at TCPConnectWrap.afterConnect [as oncomplete]  <net.js:1000:19>
Error: [POST http://(redacted)@localhost:4444/wd/hub/session] connect ECONNREFUSED
Error: connect ECONNREFUSED
  at exports._errnoException  <util.js:746:11>
  at TCPConnectWrap.afterConnect [as oncomplete]  <net.js:1000:19>
Error: [POST http://(redacted)@localhost:4444/wd/hub/session] connect ECONNREFUSED
Error: connect ECONNREFUSED
  at exports._errnoException  <util.js:746:11>
  at TCPConnectWrap.afterConnect [as oncomplete]  <net.js:1000:19>
Error: [POST http://(redacted)@localhost:4444/wd/hub/session] connect ECONNREFUSED
Error: connect ECONNREFUSED
  at exports._errnoException  <util.js:746:11>
  at TCPConnectWrap.afterConnect [as oncomplete]  <net.js:1000:19>
Error: [POST http://(redacted)@localhost:4444/wd/hub/session] connect ECONNREFUSED
Error: connect ECONNREFUSED
  at exports._errnoException  <util.js:746:11>
  at TCPConnectWrap.afterConnect [as oncomplete]  <net.js:1000:19>
Error: [POST http://(redacted)@localhost:4444/wd/hub/session] connect ECONNREFUSED
Error: connect ECONNREFUSED
  at exports._errnoException  <util.js:746:11>
  at TCPConnectWrap.afterConnect [as oncomplete]  <net.js:1000:19>
Error: [POST http://(redacted)@localhost:4444/wd/hub/session] connect ECONNREFUSED
Error: connect ECONNREFUSED
  at exports._errnoException  <util.js:746:11>
  at TCPConnectWrap.afterConnect [as oncomplete]  <net.js:1000:19>
Error: [POST http://(redacted)@localhost:4444/wd/hub/session] connect ECONNREFUSED
Error: connect ECONNREFUSED
  at exports._errnoException  <util.js:746:11>
  at TCPConnectWrap.afterConnect [as oncomplete]  <net.js:1000:19>
Error: [POST http://(redacted)@localhost:4444/wd/hub/session] connect ECONNREFUSED
Error: connect ECONNREFUSED
  at exports._errnoException  <util.js:746:11>
  at TCPConnectWrap.afterConnect [as oncomplete]  <net.js:1000:19>

TOTAL: tested 0 platforms, 0/0 tests failed; fatal error occurred

我完全按照教程中的说法进行操作。我正在使用最新的实习版2.2。请帮忙。

1 个答案:

答案 0 :(得分:0)

节点0.12改变了文件监视器的工作方式和broke the Sauce Labs tunnel。要解决此问题,请使用节点0.10,不要使用Sauce Labs,在本地应用该提交中的更改,或等待包含该修复的Intern 3版本。