Skip to content

Instantly share code, notes, and snippets.

@pieplu
Forked from gelendir/tdd_notes.md
Last active August 29, 2015 14:00
Show Gist options
  • Save pieplu/11068926 to your computer and use it in GitHub Desktop.
Save pieplu/11068926 to your computer and use it in GitHub Desktop.

commands

beginner

  • echo
  • cat
  • date
  • ls
  • sleep
  • mkdir

intermediate

  • grep
  • find
  • cp
  • tail

advanced

  • ps
  • gzip / gunzip
  • tar

User profile

  • White male between 20 and 40
  • Has some experience programming in python
  • No/Little experience in writing unit tests
  • Finds it hard to write good tests
  • Has heard about TDD, would like to learn more about it

Learning Feedback

  • Ask them to submit unit tests to github
  • Group activities :
  • Concept map on what is TDD
  • Find test names in pairs

Concepts to show

  • TDD Cycle

  • Write a failing test

  • Make it pass

  • Refactor

  • the unittest library

  • class TestUnit

  • setUp / tearDown

  • def test_

  • project/directory structure

  • running the tests

  • nose ?

  • sniffer ?

  • tox ?

  • TDD Pairing

  • Ping / pong

  • Make test pass / Write failing test

Schedule

Prep

10h

  • Introductions
  • Objectives
  • Ask experience level
  • Horror story

10h15

  • Environment setup
  • virtualenv
  • pip install

10h30 - 10h50

  • TDD Demonstration
  • TODO: Find simple use case for demonstration

11h00

  • First sprint
  • test scenario : cat

11h40

  • Review

12h00

  • Lunch

13h00

  • Second sprint
  • test scenario : date

13h40

  • Review

14h00

  • Third sprint
  • test scenario : ls

14h40

  • Review

15h00

  • Fourth sprint
  • test scenario : grep

15h40

  • Review
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment