量角器使用的输出插件
Output plugins used by protractor
量角器 2.0.0。引入了 extending protractor with plugins 这个巧妙的想法,提供了几个内置插件,如 ngHint
、console
或 timeline
.
目前,我正在尝试使 timeline
插件正常工作,我希望在控制台上看到更详细的输出以便调试问题。
是否可以在控制台上看到 protractor
加载了哪些插件?
仅供参考,创建了一个问题:Protractor to report loaded plugins。
不,我没有在 plugins.js 的代码中找到任何东西。如果我 运行 Protractor 使用启用的插件进行测试,在控制台上我只能看到插件挂钩方法的结果输出。这假定插件已正确加载。
我认为这是一个缺失的功能。我期待您(或其他人)对 Issue 1961 的贡献。
我已发送 pull request (currently merged to the development protractor
- master branch) closing the Protractor to report loaded plugins 问题。
现在,如果您 运行 量角器 ,您将获得已加载插件的列表:
DEBUG - Running with --troubleshoot
DEBUG - Protractor version: 2.1.0
DEBUG - Your base url for tests is http://127.0.0.1:9001
...
DEBUG - Plugin "/path/to/node_modules/protractor/plugins/console/index.js" loaded.
DEBUG - Plugin "/path/to/node_modules/protractor/plugins/timeline/index.js" loaded.
量角器 2.0.0。引入了 extending protractor with plugins 这个巧妙的想法,提供了几个内置插件,如 ngHint
、console
或 timeline
.
目前,我正在尝试使 timeline
插件正常工作,我希望在控制台上看到更详细的输出以便调试问题。
是否可以在控制台上看到 protractor
加载了哪些插件?
仅供参考,创建了一个问题:Protractor to report loaded plugins。
不,我没有在 plugins.js 的代码中找到任何东西。如果我 运行 Protractor 使用启用的插件进行测试,在控制台上我只能看到插件挂钩方法的结果输出。这假定插件已正确加载。
我认为这是一个缺失的功能。我期待您(或其他人)对 Issue 1961 的贡献。
我已发送 pull request (currently merged to the development protractor
- master branch) closing the Protractor to report loaded plugins 问题。
现在,如果您 运行 量角器
DEBUG - Running with --troubleshoot
DEBUG - Protractor version: 2.1.0
DEBUG - Your base url for tests is http://127.0.0.1:9001
...
DEBUG - Plugin "/path/to/node_modules/protractor/plugins/console/index.js" loaded.
DEBUG - Plugin "/path/to/node_modules/protractor/plugins/timeline/index.js" loaded.