可以量角器噶一起使用? [英] Can Protractor and Karma be used together?

查看:183
本文介绍了可以量角器噶一起使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果量角器是更换角情景转轮端到端测试,这是否意味着我仍然能够与使用<一个HREF =htt​​ps://github.com/karma-runner/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 ?

推荐答案

不建议量角器当前的维护者:

Not recommended by the current maintainer of Protractor:

<一个href=\"https://github.com/angular/protractor/issues/9#issuecomment-19927049\">https://github.com/angular/protractor/issues/9#issuecomment-19927049

量角器和噶应该不能一起使用;相反,他们提供了运行测试独立的系统。量角器和噶覆盖测试的不同方面 - 噶主要是用于单元测试,而量角器应该用于端到端测试

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.

量角器是建立在WebDriverJS,它使用硒/ webdriver的服务器,以规定的浏览器和驱动器的测试执行的顶部。纯WebDriverJS的例子可以在这里找到:<一href=\"http://$c$c.google.com/p/selenium/wiki/WebDriverJs\">http://$c$c.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

<一个href=\"https://github.com/angular/protractor/issues/9#issuecomment-19931154\">https://github.com/angular/protractor/issues/9#issuecomment-19931154

Georgios的 - 我觉得很有道理,保持量角器和噶分开 - 端到端测试,你想要本机事件驱动和webdriver的灵活性,同时为单元测试你想快速执行和文件autowatching

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.

这篇关于可以量角器噶一起使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆