From the course: Node.js: Testing and Code Quality
Unlock the full course today
Join today to access over 24,400 courses taught by industry experts.
TDD and BDD test specifications
From the course: Node.js: Testing and Code Quality
TDD and BDD test specifications
- [Presenter] While there are many different ways to write test specifications, testing frameworks provide consistent interfaces for developers. Most frameworks provide multiple domain specific languages or DSLs for writing tests. Each standardizes the vocabulary used to write tests, which in turn improves developer communication. Each DSL describes how to interact with a framework. Common examples include, test-driven development or TDD, and behavior-driven development known as BDD. Those terms may be familiar, but what do they mean? Test-driven development is a software development process, in its purest form, software requirements are turned into test cases, then the software is improved until those tests pass. Throughout development, the tests are run over and over again, giving feedback to the programmer. Strictly following test-driven development in its most academic form can be too extreme for most situations.…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
What is code quality?6m 57s
-
(Locked)
Coding conventions and standards6m 38s
-
(Locked)
Creating and enforcing coding standards7m 27s
-
(Locked)
Unit, integration, and functional testing10m 30s
-
(Locked)
Testing frameworks5m 53s
-
(Locked)
TDD and BDD test specifications5m 12s
-
(Locked)
Assertions for correctness4m 32s
-
(Locked)
Challenge: Organize your tests58s
-
(Locked)
Solution: Organize your tests1m 46s
-
-
-
-
-
-