Python TDD Primer 1 Day Workshop

Timings:

  • 9:30-11:00 Session 1
  • 11:00-11:15 Coffee Break
  • 11:15-12:45 Session 2
  • 12:45-1:45 Lunch Break
  • 1:45-3:15 Session 3
  • 3:15-3:30 Tea Break
  • 3:30-4:30 Session 4

Objectives

Coming from the Agile community; Test Driven Development has become one of the most significant development techniques of the last decade. This course introduces the principles behind Test Driven Development, provides a foundation in the application of TDD to software development and highlights the key steps that lead to successful TDD projects.

Welcome and Introductions

TDD Discussion

  • What is TDD?
  • Why TDD?
  • Why not TDD?

TDD Development Cycle

  • TDD Development Cycle
  • TDD Mantra: Red/Green/Refactor
  • 3 Rules of TDD
  • TDD is about Design more than Coding: Focus on the Interface

TDD Katas

  • What are TDD Katas: Introduction
  • Bowling Ball Kata

Practical 1

  • Hands on TDD for string calculator Kata
  • Done in groups (typically pairs)
  • Present back to other groups

TDD & Refactoring

  • Importance of Refactoring
  • Refactoring Patterns
  • TDD Anti Patterns

Practical 2 (optional)

  • Individual Practical: Tic-Tac-Toe Kata

Close with Q&A and Round Up