2016-03-14 34 views
1

当我运行一个项目ember test我收到此错误灰烬试验失败对进口到config /环境


Log: | 
     { type: 'error', 
      text: 'Error: Could not find module `otherapp/config/environment` imported from `otherapp/tests/helpers/resolver` at http://localhost:7357/assets/vendor.js, line 173\n' } 
... 
not ok 2 PhantomJS 2.1 - Global error: Error: Assertion Failed: The tests file was not loaded. Make sure your tests index.html includes "assets/tests.js". at http://localhost:7357/assets/vendor.js, line 15359 
--- 
    Log: | 
     { type: 'error', 
      text: 'Error: Assertion Failed: The tests file was not loaded. Make sure your tests index.html includes "assets/tests.js". at http://localhost:7357/assets/vendor.js, line 15359\n' } 
... 

我不知道如何调试这一点,因为这在测试中正在发生的事情套件和没有窗口调试和放置debugger;没有帮助。这也是别人的项目。

这在ember-cli或任何软件包中都没有问题,因为我创建了一个新的应用程序并编写了一些没有任何错误的验收测试。我不知道如何跟踪或调试此错误。

+0

请重新格式化您的问题中的代码/报价块。 – okket

回答

3

我有这个问题,这是一个严格的模式错误。我实际上是在同一名称的控制器上声明两次属性。 你可以将phantomjs安装到一个端口上然后在那里浏览来调试。

把这个在您的testem.json

"phantomjs_debug_port": 9000

,然后浏览localhost:9000第二链路与发送给您的幻影开发工具!