角因缘亚军无限期挂起 [英] angular karma runner hangs indefinitely

查看:154
本文介绍了角因缘亚军无限期挂起的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Windows 8的64位

Node.js的0.10.5 64

噶0.8.5

我能够启动服务器因缘,Chrome浏览器中打开(我把它定义为因果报应配置默认浏览器)。当我做'因果报应运行'的问题来了。镀铬变为镀铬26.0(Windows)的执行选项卡状态。但是,这一切,控制台,什么都没有就没有输出。它可以保持这样的好几个小时。

I am able to start karma server, Chrome browser opens (I have it defined as default browser in karma config). The issue comes when I am doing 'karma run'. Chrome changes the tab status to Chrome 26.0 (Windows) is executing. But that is all, no output on the console, no nothing. it can stay like that for hours.

任何想法?

修改

我都有以下要旨:karma.conf.js和main.js(用于加载测试脚本)。
我开始与LOG_DEBUG服务器,我可以看到,所有脚本文件被加载。
吉斯特网址: https://gist.github.com/mihaihuluta/5490991

I have the follwoing gists: karma.conf.js and main.js (used for loading the test scripts). I am starting the server with LOG_DEBUG and I can see that all script files are loaded. Gist url: https://gist.github.com/mihaihuluta/5490991

推荐答案

我个人认为,如果你有require.js ...

I personally found that if you have require.js...

框架:['茉莉花','requirejs']

...当你不需要它,事情只会锁定在执行......在所有浏览器。

...when you don't need it, things will just lock up at "executing..." in all browsers.

另外,还要确保你已经specifed你的适配器,例如:

Also make sure you've specifed your adapters, eg.

files: [
    //adapter
    JASMINE, 
    JASMINE_ADAPTER,
    //...other files...
    'test/client/*.js'
]

最后,我用

日志等级:config.LOG_DEBUG

浏览器:['铬'] //只有一个

......,以确保我有最简单的测试案例和我得到任何失败的所有调试信息。

...to ensure I have the simplest test case and am getting all debug information for any failures.

这篇关于角因缘亚军无限期挂起的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆