• <bdo id='1jhsu'></bdo><ul id='1jhsu'></ul>
    <legend id='1jhsu'><style id='1jhsu'><dir id='1jhsu'><q id='1jhsu'></q></dir></style></legend>
  • <i id='1jhsu'><tr id='1jhsu'><dt id='1jhsu'><q id='1jhsu'><span id='1jhsu'><b id='1jhsu'><form id='1jhsu'><ins id='1jhsu'></ins><ul id='1jhsu'></ul><sub id='1jhsu'></sub></form><legend id='1jhsu'></legend><bdo id='1jhsu'><pre id='1jhsu'><center id='1jhsu'></center></pre></bdo></b><th id='1jhsu'></th></span></q></dt></tr></i><div id='1jhsu'><tfoot id='1jhsu'></tfoot><dl id='1jhsu'><fieldset id='1jhsu'></fieldset></dl></div>

      <tfoot id='1jhsu'></tfoot>

      <small id='1jhsu'></small><noframes id='1jhsu'>

        Protractor 和 Karma 可以一起使用吗?

        时间:2023-06-15
          • <i id='W3AF6'><tr id='W3AF6'><dt id='W3AF6'><q id='W3AF6'><span id='W3AF6'><b id='W3AF6'><form id='W3AF6'><ins id='W3AF6'></ins><ul id='W3AF6'></ul><sub id='W3AF6'></sub></form><legend id='W3AF6'></legend><bdo id='W3AF6'><pre id='W3AF6'><center id='W3AF6'></center></pre></bdo></b><th id='W3AF6'></th></span></q></dt></tr></i><div id='W3AF6'><tfoot id='W3AF6'></tfoot><dl id='W3AF6'><fieldset id='W3AF6'></fieldset></dl></div>

            <legend id='W3AF6'><style id='W3AF6'><dir id='W3AF6'><q id='W3AF6'></q></dir></style></legend>
              <bdo id='W3AF6'></bdo><ul id='W3AF6'></ul>

                <small id='W3AF6'></small><noframes id='W3AF6'>

                    <tbody id='W3AF6'></tbody>
                  <tfoot id='W3AF6'></tfoot>

                  本文介绍了Protractor 和 Karma 可以一起使用吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  如果 Protractor 正在取代 Angular Scenario Runner 进行 E2E 测试,这是否意味着我仍然可以将它与 Karma 作为我的端到端测试框架?

                  If Protractor is replacing Angular Scenario Runner for E2E testing, does that mean I will still be able to use it with Karma as my E2E testing framework ?

                  推荐答案

                  Protractor 的当前维护者不推荐:

                  Not recommended by the current maintainer of Protractor:

                  https://github.com/angular/protractor/issues/9#issuecomment-19927049

                  Protractor 和 Karma 不应该一起使用;相反,它们为运行测试提供了单独的系统.Protractor 和 Karma 涵盖了测试的不同方面 - Karma 主要用于单元测试,而 Protractor 应该用于端到端测试.

                  Protractor and Karma should not be used together; instead they provide separate systems for running tests. Protractor and Karma cover different aspects of testing - Karma is intended mostly for unit tests, while Protractor should be used for end to end testing.

                  Protractor 构建在 WebDriverJS 之上,它使用 Selenium/WebDriver 服务器来配置浏览器和驱动测试执行.可以在这里找到纯 WebDriverJS 的示例:http://code.google.com/p/selenium/wiki/WebDriverJs

                  Protractor is built on top of WebDriverJS, which uses a Selenium/WebDriver server to provision browsers and drive test execution. Examples of pure WebDriverJS can be found here: http://code.google.com/p/selenium/wiki/WebDriverJs

                  https://github.com/angular/protractor/issues/9#issuecomment-19931154

                  Georgios - 我认为将 Protractor 和 Karma 分开是有意义的 - 对于端到端测试,您需要 webdriver 的原生事件驱动和灵活性,而对于单元测试,您需要快速执行和自动查看文件.

                  Georgios - I think it makes sense to keep Protractor and Karma separate - for end to end tests, you want the native event driving and flexibility of webdriver, while for unit tests you want fast execution and autowatching of files.

                  这篇关于Protractor 和 Karma 可以一起使用吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:量角器:element.getText() 返回一个对象而不是字符串 下一篇:将 require 与相对路径一起使用

                  相关文章

                  <tfoot id='BoqoP'></tfoot>

                    <bdo id='BoqoP'></bdo><ul id='BoqoP'></ul>

                  <small id='BoqoP'></small><noframes id='BoqoP'>

                    <legend id='BoqoP'><style id='BoqoP'><dir id='BoqoP'><q id='BoqoP'></q></dir></style></legend>
                  1. <i id='BoqoP'><tr id='BoqoP'><dt id='BoqoP'><q id='BoqoP'><span id='BoqoP'><b id='BoqoP'><form id='BoqoP'><ins id='BoqoP'></ins><ul id='BoqoP'></ul><sub id='BoqoP'></sub></form><legend id='BoqoP'></legend><bdo id='BoqoP'><pre id='BoqoP'><center id='BoqoP'></center></pre></bdo></b><th id='BoqoP'></th></span></q></dt></tr></i><div id='BoqoP'><tfoot id='BoqoP'></tfoot><dl id='BoqoP'><fieldset id='BoqoP'></fieldset></dl></div>