ValentinNM / boolean-uk-tdd-from-requirements-to-source-code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Test-Driven Development

From Requirements to Source Code

Learning Objectives

  • Explain how TDD relates to the software development lifecycle
  • Setup and use a test framework to help test code
  • Use the Red Green Refactor loop to develop code
  • Test-drive a program with multiple functions with unit tests

Intro

Test-driven development is a development process to help align work done with requirements, improve quality of code, and allow for easier maintenance. It focuses on confirming and then codifying the behaviour of code before it is written.

In the software development lifecycle TDD is used in between the requirements gathering phase and the release phase.

The output of the TDD process is both source code and a test suite that has codified the expected behaviour based on user requirements.

Exercises

  1. From user stories to domain model
  2. From domain model to tests
  3. From tests to source code

About


Languages

Language:JavaScript 100.0%