Unit Testing Angular 2+ with Jasmine + HTML Templates [2021]

所在平台: Udemy

课程主页: https://www.udemy.com/course/unit-testing-angular-9-with-jasmine-html-templates/

课程评论:没有评论

第一个写评论        关注课程

课程简介

**课程名称:** 使用 Jasmine 和 HTML 模板对 Angular 2+ 进行单元测试 [2021] **课程概述:** 您是否希望花更少的时间修复 bug,而将更多时间投入到开发新功能中?那么这门课程就是为您量身打造的!无论您是完全的初学者,还是对单元测试有一些了解,本课程都将帮助您更深入地理解单元测试,并指导您编写何种单元测试。 在本课程中,您将学习如何使用 Jasmine 对您自己的 Angular 应用进行单元测试。无需任何单元测试的先验知识,我们将涵盖您需要了解的一切。 您将学习单元测试背后的理论,并理解单元测试运行时会发生什么。我们将介绍您需要安装哪些工具来让您的应用为单元测试做好准备。我们将设置一个可重用的单元测试环境,并展示如何创建模拟组件和服务。 我们将通过随附的示例 Angular 应用,展示您可以编写的各种 TypeScript 单元测试示例。我们还将涵盖您可以为 HTML 模板编写的单元测试! 我们将展示如何自动化您的单元测试,并在有人发出拉取请求时自动运行它们,在他们将更改合并之前检查一切是否正常。 我们将了解如何检查我们是否为添加的任何代码编写了单元测试,并检查我们是否更新了更改代码的任何单元测试。我们还将了解,如果尚未为新更改编写单元测试,如何阻止拉取请求被合并。 **通过本课程的学习,您将掌握:** * 单元测试的理论 * 在您自己的应用中设置单元测试 * 需要编写的单元测试(附带示例) * 为 HTML 模板编写单元测试 * 使用流水线自动运行单元测试 * 加快单元测试运行速度的方法 热烈欢迎各位同学加入本课程!希望您能从中受益,并对课程的改进提出宝贵的反馈和建议!

课程评论(0条)

课程详情

Wouldn't it be great if you could spend less time fixing bugs and spend more time developing new features instead? Then this is the course for you!Whether you're an absolute beginner or have some familiarity with unit testing, this course will give you a deeper understanding of unit tests and show you what unit tests to write.In this course, I'll teach you how you can unit test your own Angular apps using Jasmine. There's no need for any previous knowledge of unit testing, we'll go over everything you need to know.You'll learn the theory behind unit testing and understand what happens when unit tests run. We'll go through what you need to install to get your app ready for unit testing. We'll set up a reusable unit testing environment and show you how to create mock components and services.We'll go over many different examples of typescript unit tests you can write using our included example Angular app. And we'll go over unit tests you can write for your HTML templates!We'll show you how you can automate your unit tests and run them automatically whenever someone makes a pull request before they merge in their changes to check everything still works correctly.We'll see how we can check we've written unit tests for any code we add and check we've updated any unit tests for the code we change. We will also see how we can prevent a pull request from being merged in if we haven't written unit tests for our new changes.By the end of the course, you'll learn about: The theory behind unit testsSetting up unit tests in your own appWhat unit tests to write with examplesWriting unit tests for HTML templatesAutomatically running unit tests using pipelinesWays to make your unit tests run fasterLet me be the first to welcome you to the course! I hope you find it useful and I welcome any feedback and suggestions to improve the course!

课程标签

0人关注该课程

主题相关的课程