是否有可能与没有在所有浏览器上运行噶?有可能、器上

2023-09-13 04:50:05 作者:伊人、独憔悴

我开始约曼的一个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.

 
精彩推荐
图片推荐