Skip to content

sergekukharev/tdd-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TDD Demo

A repo I'm using to demonstrate TDD technique.

My goal is to teach following TDD concepts:

  • 3 rules of TDD
  • Red-Green-Refactor
  • The Single Assert Rule
  • Arrange, Act, Assert Rule
  • Principle: "As tests get more specific, code gets more generic"

3 rules of TDD

  1. You can’t write any production code until you have first written a failing unit test.
  2. You can’t write more of a unit test than is sufficient to fail, and not compiling is failing.
  3. You can’t write more production code than is sufficient to pass the currently failing unit test.

Katas

Apart of 3 simple katas presented in this repo, there is a whole world of katas out there.

Solutions

You can find my version of the solutions in the corresponding branch.

Note that every time you do katas, the solutions would be slightly different. That's the beauty of katas - you keep discovering new ways of solving the same problem.

Resources

Notable katas

Kata sources

Further study

About

A repo I'm using to demonstrate TDD technique

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published