Skip to content

Instantly share code, notes, and snippets.

@soravux
Forked from gelendir/tdd_notes.md
Last active August 29, 2015 14:00
Show Gist options
  • Save soravux/11072670 to your computer and use it in GitHub Desktop.
Save soravux/11072670 to your computer and use it in GitHub Desktop.
Propositions de modifications au plan de TDD

commands

beginner

  • echo
  • date
  • sleep
  • mkdir

intermediate

  • grep
  • find
  • cp
  • tail
  • cat
  • ls
  • md5

advanced

  • ps
  • gzip / gunzip
  • tar
  • telnet
  • diff
  • curl / wget

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 py.test library

  • 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

9h30

  • Prerequisites

10h

  • Introductions
  • Objectives
  • Ask experience level
  • Horror story

10h15

  • Environment setup
  • virtualenv
  • pip install requirements.txt
  • py.test
  • TDD Demonstration
  • TODO: Find simple use case for demonstration
  • running tests

11h00

  • First sprint
  • test scenario : cat

11h40

  • Review

13h00

  • Second sprint
  • test scenario : date

13h40

  • Review

14h00

  • Third sprint
  • test scenario : ls

15h40

  • Review

16h00

  • Fourth sprint
  • test scenario : grep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment