Introduction to TDD in Node and Typescript (and Jest)

所在平台: Udemy

课程主页: https://www.udemy.com/course/introduction-to-tdd-in-node-and-typescript/

课程评论:没有评论

第一个写评论        关注课程

课程简介

课程名称:Node.js 和 TypeScript (及 Jest) 中的测试驱动开发入门 课程概述: 本课程将介绍测试驱动开发(TDD)。TDD 是一种实践方法,我们首先编写测试来定义要解决的问题,然后再编写代码实现。通过这种方式,我们可以专注于需要构建的内容以及软件的预期结果。由于测试为边界和范围定义了清晰的界限,因此我们可以在一个安全的环境中尝试新的设计、方法和解决方案。 在本课程中,我们将学习 TDD 的概念,以及如何在 Node.js 和 TypeScript 环境中使用 Jest 作为测试框架来实现 TDD。我们将了解 TDD 的基本规则,以及如何利用纪律性来从中获益。为此,我们将通过一些练习来实践所学的知识,并在一个具有特定学习目标的、安全的环境中进行。我们将面对一些问题,并首先逐个编写测试,然后利用 TDD 的“红-绿-重构”循环来指导代码设计。之后,我们将学习如何使用 Mocks 和 Stubs,并将在心中已经有了设计的前提下编写测试,从而自信地按照我们的设计决策来构建软件。 鸣谢 @Panos 的建设性反馈,使本课程更加完善。

课程评论(0条)

课程详情

This course is an introduction to Test Driven Development. TDD is a practice where we start writing tests defining the problem we have to solve and later writing the code implementation. By doing this, we focus on what we have to build and what are the expected outcomes of the software. We also have a safe space to try new designs, approaches and solutions to the same problem, as the boundaries and scope are well defined by the tests.In this course we will learn what is TDD, how to use it in a nodejs and typescript environment using jest as testing framework. During the way we will see the basic rules of it and how we can take advantage of being disciplined. To do so, will do some exercises to practice what we learned in a safe space with specific learning objectives. We will have some problems presented and we will start first writing the tests, one at a time and leveraging the design of our code from them using the red-green-refactor loop. Later we will learn how to use mocks and stubs and we will write the tests with our design already in mind and build our software with confidence according to our design decisions. Kudos to @Panos for the constructive feedback that helped to make this course better.

课程标签

0人关注该课程

主题相关的课程