Angular-seed使用Protractor / Selenium WebDriver用于E2E,但是angular-phonecat教程使用karma。
Angular Scenario Runner is in maintenance mode – If you’re starting a new Angular project,consider using 07000.
教程angular-phonecat是很久以前开发的(在2011年主要),还没有更新使用一些Angular的新功能,如Protractor。
编辑
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.
原文地址:https://www.jb51.cc/angularjs/147091.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。