Specify browser location for wct-local test

狂风中的少年 提交于 2019-12-21 12:03:07

问题


The Polymer Starter Kit contains web-component-tester for unit testing your custom elements. In wct.conf.json you can specify the browsers to run the tests in.

{
  "suites": ["app/test"],
  "plugins": {
    "local": {
    "browsers": ["firefox"]
  }
}

Unfortunately, when I launch the tests through gulp, wct is not able to find my local Firefox. I read at GitHub that wct uses launchpad to detect local browsers. Afaik, on a Windows machine, launchpad searches for Firefox in the default directory "C:\Program Files\Mozilla Firefox". But I installed Firefox in a different directory.

Is there any way to configure the path to my Firefox dir in wct.conf.json?

来源:https://stackoverflow.com/questions/32865064/specify-browser-location-for-wct-local-test

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!