0
我有一套测试在浏览器中使用Mocha运行,但现在我想使用PhantomJS,因此我可以在我们的CI服务器上运行我的单元测试。在我的test.html文件上运行mocha-phantomjs
命令时,出现一些错误。Mocha-PhantomJS - 无法找到路径并找不到变量:摩卡
这是第一个错误:
Error loading resource file:///Navigation/GetAllNavigation(203). Details: Error
opening /Navigation/GetAllNavigation: The system cannot find the path specified.
在我的控制器之一,我在那个网址返回一些JSON数据制作到的WebAPI控制装置的呼叫。
第二个错误是:
ReferenceError: Can't find variable: Mocha
我不知道是什么原因造成这个错误。任何想法如何我可以解决这些问题?