Seminar sylabus PV260 (Group 03)

Week 3 - TDD

This seminar, we will discuss correct writing of Unit Test and approaches to Test Driven Development.

TDD cover only small part in SDLC as shown in figure below (J. Ráček, slides from PA017 lectures)

TDD approach: Red-Green-Refactor

Red: Write a test and see it fails.

Green: Write a code, check if if 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 then green.

 

TDD events

If you want to make you TDD skills better, there are Code Retreat events where you can practise programming, object-oriented design and TDD.
Official Code Retreat site
Czech Code Retreat site

Sources
Roy Osherove training site
TDD kata 1
Coding kata catalogue