6

我在centOS5 linux服务器上运行它作为CI作业时遇到了同样的问题,使用phantomJS 1.7(我自己编译)

Running "jasmine" task 
Testing jasmine specs via phantom 
...  
[D] ["phantomjs","onResourceReceived","GET
http://127.0.0.1:8888/test/spec/CommonTest.js"]
[D] ["phantomjs","onError","ReferenceError: Can't find variable: describe",        [{"file":"http://127.0.0.1:8888/test/spec/CommonTest.js","line":31,"function":""}]]     
ReferenceError: Can't find variable: describe 
...

规范在其他机器上成功运行,如 WinXP 等。

4

1 回答 1

0

最后,它是由这个引起的:我为“node_modules”创建了一个符号链接以重用公共模块,但它阻止了grunt-jasmine-runner 获取某事。(还不确定)。要解决它,需要直接复制项目文件夹下的“node_modules”文件。

于 2012-11-23T03:06:20.913 回答