In this 1-hour long project-based course, you will learn how to generate a new Angular project, create components and write unit tests in the spec file. You will learn how to bootstrap your tests, and will test the presence of text and the action of clicking a button. You will test the presence of HTML attributes, and the passage of data from a parent component to a child component.
通过 Coursera Plus 提高技能,仅需 239 美元/年(原价 399 美元)。立即节省

Test your Angular web application using Jasmine and Karma
1,825 人已注册
包含在 中
您将学到什么
Understand how the Jasmine test framework apply unit testing to Angular apps
Understand how Karma spawns test instances
Understand how to write unit tests in Jasmine
要了解的详细信息

添加到您的领英档案
仅桌面可用
了解顶级公司的员工如何掌握热门技能

在 2 小时内学习、练习并应用岗位必备技能
- 接受行业专家的培训
- 获得解决实训工作任务的实践经验
- 使用最新的工具和技术来建立信心

关于此指导项目
分步进行学习
在与您的工作区一起在分屏中播放的视频中,您的授课教师将指导您完成每个步骤:
-
Create a new angular project using Angular CLI, and start testing
-
Understand how Jasmine, Karma, the spec file and TestBed work
-
Test the main app component for displaying strings and clicking buttons
-
Bootstrap your TestBed configuration for your tests using beforeEach
-
Test the presence of a HTML element
-
Test passing data between components
推荐体验
Basic experience in Angular development
3个项目图片
位教师

提供方
学习方式
基于技能的实践学习
通过完成与工作相关的任务来练习新技能。
专家指导
使用独特的并排界面,按照预先录制的专家视频操作。
无需下载或安装
在预配置的云工作空间中访问所需的工具和资源。
仅在台式计算机上可用
此指导项目专为具有可靠互联网连接的笔记本电脑或台式计算机而设计,而不是移动设备。
人们为什么选择 Coursera 来帮助自己实现职业发展

Felipe M.

Jennifer J.

Larry W.

Chaitanya A.
学生评论
- 5 stars
56.81%
- 4 stars
25%
- 3 stars
15.90%
- 2 stars
0%
- 1 star
2.27%
显示 3/44 个
已于 May 24, 2021审阅
easy to follow and gives good basic understanding of how to write test for front-end







