Skip to content
/ katas Public

A list of exercise to practice Test-Driven Development and Simple Design

Notifications You must be signed in to change notification settings

tbouttaz/katas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Katas

To do

Done

TDD good habits

  • Write first a failing test
  • Write just enough code to make it pass
  • Refactor to improve the code
  • Tests should test one thing only
  • Don't refactor with a failing test
  • Ensure tests are independent of each other
  • Organise your unit test projects to reflect your production code
  • Give your tests meaningful names
  • Create more specific tests to drive a more generic solution (Triangulate)
  • See the test fail for the right reason
  • Write the assertion first and work backwards
  • Organize your test in Arrange, Act and Assert blocks.
  • Write the simplest code to pass the test
  • Treat tests as first-class code
  • Use the IDE to refactor quickly and safely
  • Refactor production and test code independently (except changing public interfaces)
  • Use the Rule of 3 to tackle duplication

Seed projects

Seed projects to quickly start practicing TDD in different programming languages.

Online IDE

About

A list of exercise to practice Test-Driven Development and Simple Design

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published