是否有可能与没有在所有浏览器上运行噶? [英] Is it possible to run Karma with no browsers at all?

查看:125
本文介绍了是否有可能与没有在所有浏览器上运行噶?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始约曼的一个Angular.js应用哟角,其中包括噶测试。然后,咕噜测试合理的失败,因为的噶找不到任何浏览器的。 (在浏览器并没有在应用程序的node_modules /人缘配置文件中设置)。

I started an Angular.js app with Yeoman's yo angular that includes Karma testing. Then, the grunt test reasonably failed because Karma can't find any browsers. (The browsers has not been set in the app's node_modules/karma config file.)

我在做通过SSH我的发展注入了远程机器上,我认为这(让我知道如果我错了)是毫无意义的,让Chrome,的/ usr / bin中/铬浏览器,安装。

I'm doing my development via SSH into a remote machine, which I think (let me know if I'm wrong) is pointless to have Chrome, /usr/bin/chromium-browser, installed.

那么,有可能没有任何浏览器中运行噶?

So is it possible to run Karma without any browsers?

推荐答案

需要浏览器进行设置。

您可以使用PhantomJS而不是Chrome浏览器。结果
事实上,它比传统的浏览器启动更谨慎。

You can make use of PhantomJS instead of Chrome.
Indeed, it's more discreet than a traditional browser launch.

这篇关于是否有可能与没有在所有浏览器上运行噶?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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