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

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.…

Contents