大佬教程收集整理的这篇文章主要介绍了angularjs – 在命令行中设置配置的’browsers’属性,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
但是当我有一个错误,我需要调试,我将karma.conf.js浏览器更改为[‘Chrome’].
当我开始业务时,我想设置这个属性,像:’karma start –browsers = [Chrome]’.
这是可以吗?
$karma start config/testacular.conf.js --browsers Chrome
例如,我只配置了一个小的Qt浏览器.如果我使用上面的行,它会运行Chrome.
INFO [karma]: Karma server started at http://localhost:9876/ INFO [launcher]: StarTing browser Chrome INFO [Chrome 24.0 (LinuX)]: Connected on socket id DxbVJNX0jIoe1CbaWf9V Chrome 24.0 (LinuX): Executed 74 of 74 succesS (0.443 secs / 0.232 secs) ...
或者,例如,我有firefox beta,极光,并在我的家释放.我运行测试版:
$karma start config/testacular.conf.js --browsers ~/firefox/firefox
$karma start --Help Karma - Spectacular Test Runner for JavaScript. START - Start the server / do a single run. Usage: karma start [<configFile>] [<options>] Options: --port <Integer> Port where the web server is running. --runner-port <Integer> Port where the server is listening for runner. --auto-watch Auto watch source files and run on change. --no-auto-watch Do not watch source files. --log-level <disable | error | warn | info | debug> Level of logging. --colors Use colors when reporTing and prinTing logs. --no-colors Do not use colors when reporTing or prinTing logs. --reporters List of reporters (available: dots,progress,junit). --browsers List of browsers to start (eg. --browsers Chrome,ChromeCanary,FireFox). --capture-timeout <Integer> Kill browser if Does not capture in given time [ms]. --single-run Run the test when browsers captured and exit. --no-single-run Disable single-run. --report-slower-than <Integer> Report tests that are slower than given time [ms]. --Help Print usage and options. --version Print current version.
以上是大佬教程为你收集整理的angularjs – 在命令行中设置配置的’browsers’属性全部内容,希望文章能够帮你解决angularjs – 在命令行中设置配置的’browsers’属性所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。