Skip to content

Latest commit

 

History

History

6-tdd-intro

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Introduction to Test Driven Development

TL;DR

Write tests before your code.

Red, Green, Refactor

1. Red

Write a failing test for the functionality you want to implement.

2. Green

Write just enough code to make that test pass.

3. Refactor

If your code is getting ugly, clean it up. Ensure that all tests still pass.

Code Kata

A code kata is an exercise in programming which helps a programmer hone their skills through practice and repetition. Wikipedia

A kata is intended to be completed using Test Driven Development.

String Calculator Kata

link