Seminar sylabus of PV260/YSoft
3 - TDD
In this seminar, we will discuss a way of writing unit tests and approaches to Test Driven Development. By writing several small programs with tests, we will prepare our dev environment for future workshops.
TDD approach: Red-Green-Refactor
Red: Write a test and see it fails.
Green: Write a code, check whether the test passes.
Refactor: rewrite the code to be short, understandable, and more effective, use design patterns and SOLID principles. Run the tests often and keep them green.
TDD events
If you want to make your TDD skills better, there are Code Retreat events where you can practice programming, object-oriented design, and TDD.
Official Code Retreat site
Czech Code Retreat site
Sources
Roy Osherove training site
TDD kata 1
Coding kata catalog