Upgrade to Pro — share decks privately, control downloads, hide ads and more …

TDD with Python

Chad Estioco
September 27, 2014

TDD with Python

A talk about TDD for PythonPH's September 2014 meet-up. The meet-up was held at Chikka's HQ and I was a Chikka employee then.

Chad Estioco

September 27, 2014
Tweet

More Decks by Chad Estioco

Other Decks in Programming

Transcript

  1. Test, test, test, and test. And when you no longer

    want to test, drag your (team mate’s) @** and test some more! ~ Chad Estioco
  2. anatomy of a unit-test - the set-up → def setUp(self):

    - the tests (duhh) → def test*(self): - the tear-down → def tearDown (self):
  3. how to use unit tests simple! just run all of

    them, every time to ensure that nothing is broken.
  4. time for a quick count at ~2.5K commits tornado has

    roughly 42 test modules at ~19k commits django has roughly 1267 test modules