TDD JavaScript

Me and TDD

Discussion!

- Not: I'm going to teach you everything

you need to know about TDD

The Three Rules of Test Driven Development

  • You are not allowed to write any production code unless it is to make a failing unit test pass.
  • You are not allowed to write any more of a unit test than is sufficient to fail; and compilation failures are failures.
  • You are not allowed to write any more production code than is sufficient to pass the one failing unit test.

- Uncle Bob
http://butunclebob.com/ArticleS.UncleBob.TheThreeRulesOfTdd

§

Mob programming

Be nice!

  • Hot seat
  • The driver asks for help
  • Observers keep quiet

❤️

TODO App

  • Add item (name, done flag)
  • Remove item
  • Toggle done
  • Get all items
  • Get all not done items
  • Get all done items
  • -------------------
  • Change priority:
    Move item in list,
    from any pos to any pos

☑️

More

  • Dependency Injection
  • Mocks (sinon.js)
Made with Slides.com