Skip to content

cw-engineering/tdd-katas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Collection of TDD katas

Test-driven development is a software development process relying on software requirements being converted to test cases before software is fully developed, and tracking all software development by repeatedly testing the software against all test cases. Wikipedia

How to TDD Kata?

Follow the Three Laws of TDD:

  1. You must write a failing test before you write any production code.
  2. You must not write more of a test than is sufficient to fail, or fail to compile.
  3. You must not write more production code than is sufficient to make the currently failing test pass.

How to do this practically? Do you know about Red-Green-Refactor? Apply in shifted order and repeat:

  1. Green: Fix a failing unit test
  2. Refactor: Tidy up the code
  3. Red: Create a unit tests that fails.

Then have someone else do the steps above. And so on ...

About

TDD Katas

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors