加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

angularjs – 我应该使用量角器或卡尔玛我的端到端测试吗?

发布时间:2020-12-17 09:12:26 所属栏目:安全 来源:网络整理
导读:我应该使用量角器还是Karma进行我的端对端测试? Angular-seed使用Protractor / Selenium WebDriver用于E2E,但是angular-phonecat教程使用karma。 我读到我应该使用Karma单位测试和量角器E2E,这似乎很好,但我想我会在这里要求得到其他开发商的意见。 Angu
我应该使用量角器还是Karma进行我的端对端测试?

Angular-seed使用Protractor / Selenium WebDriver用于E2E,但是angular-phonecat教程使用karma。

我读到我应该使用Karma单位测试和量角器E2E,这似乎很好,但我想我会在这里要求得到其他开发商的意见。

AngularJS团队建议使用量角器,因为它将取代角度场景选择器:

Angular Scenario Runner is in maintenance mode – If you’re starting a new Angular project,consider using 07000.

引自AngularJs documentation。

教程angular-phonecat是很久以前开发的(在2011年主要),还没有更新使用一些Angular的新功能,如Protractor。

编辑

在Protractor Docs – FAQ:

Why both Karma and Protractor? When do I use which?

Karma is a great tool for unit testing,and Protractor is intended for
end to end or integration testing. This means that small tests for the
logic of your individual controllers,directives,and services should
be run using Karma. Big tests in which you have a running instance of
your entire application should be run using Protractor. Protractor is
intended to run tests from a user’s point of view – if your test could
be written down as instructions for a human interacting with your
application,it should be an end to end test written with Protractor.

Here’s a 07003 with more info.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读